This is my first post in the forms, I love game development and have thus far released only 1 commercial product (with not much success by the way). Anyway, I started programming with BlitzMax (commercial language) and after a long affair with it, I thought it was time to grow up and use some industry standard tools (not to mention non-mainstream language experience is almost useless in CV).
I’ve hit my first wall with SDL2/DX and CEGUI. The initialization of the renderer is done calling CEGUI::Direct3D9Renderer::bootstrapSystem ( LPDIRECT3DDEVICE9 device, …)
For OpenGL, the function has no arguments. I don’t know what to pass as an argument for that function. I scanned the source for LPDIRECT3DDEVICE9 instances but found no match (to track down the wrapping SDL2 element for LPDIRECT3DDEVICE9)
Message-ID: <1390081212.m2f.41548 at forums.libsdl.org>
Content-Type: text/plain; charset=“iso-8859-1”
Hello Everyone!
This is my first post in the forms,
Word of warning before you run afoul of the quirks: this forum
connects to the mailinglist, so the only features that you can depend
on are plain text. Fortunately, I’m not seeing any signs that you
tried (or at least needed) to use fancy stuff.
I’ve hit my first wall with SDL2/DX and CEGUI. The initialization of the
renderer is done calling CEGUI::Direct3D9Renderer::bootstrapSystem (
LPDIRECT3DDEVICE9 device, …)
For OpenGL, the function has no arguments.
So, just to confirm, you want to use a DirectX renderer, and NOT an
OpenGL one, correct?
I don’t know what to pass as an
argument for that function. I scanned the source for LPDIRECT3DDEVICE9
instances but found no match (to track down the wrapping SDL2 element for
LPDIRECT3DDEVICE9)
Any clues?
I believe that you want include/SDL_system.h, look for SDL_RenderGetD3D9Device.
And any time that you run into it, try to remember that the LP* stuff
that Microsoft uses is a legacy of the variable-pointer-size
pre-32-bit x86 days. For current machines you should imagine that it
just means “pointer” instead of “long pointer” (I believe that this is
how current typedefs define it, too…). Keeping this nuisance in mind
should hopefully make things easier for you in the future.> Date: Sat, 18 Jan 2014 21:40:12 +0000
From: “Rixarn”
To: sdl at lists.libsdl.org
Subject: [SDL] SLD2 with DirectX and Cegui
Thanks for your help! And thanks for the warning too. My reason being here is the community, I’m ok without fancy stuff
That said, you’re right. I want t use a DirectX renderer, not an OpenGL. I have the OpenGL renderer working already. Will do what you told me and see how it goes.