Results 1 to 2 of 2

Thread: Can I port D3D implement from 3.0 to 2.3.7?

  1. #1

    Default Can I port D3D implement from 3.0 to 2.3.7?

    Can I port D3D implement from 3.0 to 2.3.7?

  2. #2
    Master Sorcerer
    Join Date
    Sep 2006


    Mostly you can, although there are few important differences that could cause trouble.

    The biggest issue will be that ClanLib 3.0 uses state classes (BlendState, DepthStencilState, etc) while 2.3 has individual setter functions (set_blend_func, etc) on GraphicContext for similar functionality. This change in 3.0 was made mostly because Direct3D itself only operates with immutable state classes, and I figured it was easier to support that for the OpenGL target than the other way around. So this means a 2.3 port would require adding some code that can create state objects for each of the state setups the app actually ends up using.

    The second issue is that ClanLib 3.0's Texture class adds support for a bunch of texture types that 2.3 does not support that well (1DArray, 2DArray, 3D, etc). This issue is easier to deal with since you can probably get away with just disabling the parts of the D3D target which would be used for those variants. There are also some new GPU object types (compute shaders, storage buffers, texture views) that 2.3 doesn't have. Once again, you could probably solve this by remarking/removing code supporting this.

    Last, there's the huge PITA of having to add CL_ in front of everything.

Similar Threads

  1. Trying to implement isPlaying on iOS
    By Etek in forum Proton SDK
    Replies: 3
    Last Post: 11-28-2010, 11:13 AM
  2. What I would need to do to implement a new entity type or something?
    By speeder in forum Novashell Game Creation System
    Replies: 1
    Last Post: 08-18-2010, 05:10 AM
  3. port to wii or ps is possible?
    By DavinciZhe in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 03-28-2009, 08:23 PM
  4. Some requested things to implement
    By SLATE in forum Funeral Quest
    Replies: 6
    Last Post: 09-27-2004, 04:59 PM
  5. PocketPC port
    By in forum RTsoft Tavern
    Replies: 0
    Last Post: 06-03-2004, 09:54 AM



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts