hi all!
im doing this:
int main(int in_argc, char **in_argv)
{
putenv(“SDL_VIDEODRIVER=windib”);
SDL_Init(SDL_INIT_VIDEO);
char l_driverName[16];
SDL_VideoDriverName(l_driverName, sizeof(l_driverName));
Trace("SDL Video Driver Name: %s\n", l_driverName);
…
driverName always return “directx”…
anything i m missing here?
thx
Hi,
I do this and it works:
char envVariable[64];
sprintf(envVariable,"SDL_VIDEODRIVER=windib");
putenv(envVariable);
Wayne.
Golgoth! wrote:> hi all!
im doing this:
int main(int in_argc, char **in_argv)
{
putenv(“SDL_VIDEODRIVER=windib”);
SDL_Init(SDL_INIT_VIDEO);
char l_driverName[16];
SDL_VideoDriverName(l_driverName, sizeof(l_driverName));
Trace(“SDL Video Driver Name: %s\n”, l_driverName);
…
driverName always return “directx”…
anything i m missing here?
thx
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
hi all!
im doing this:
int main(int in_argc, char **in_argv)
{
putenv(“SDL_VIDEODRIVER=windib”);
SDL_Init(SDL_INIT_VIDEO);
char l_driverName[16];
SDL_VideoDriverName(l_driverName, sizeof(l_driverName));
Trace(“SDL Video Driver Name: %s\n”, l_driverName);
…
driverName always return “directx”…
anything i m missing here?
thx
I’ve got different problem, but which is connected with yours… when I was using SDL 1.2.6 I always got “directx”, and asking for amount of available video card memory gave me good values that you would expect to get.
However, since I switched to SDL 1.2.8, I always get “windib”, and it’s more strange because I didn’t change even one line of code. Also, asking for amount of available video card memory gives me “0” in answer.
And what’s even more strange is that when I put:
putenv(“SDL_VIDEODRIVER=directx”)
before SDL_InitSubSystem(SDL_INIT_VIDEO), it always returns -1 (failed). I’m using WinXP, GeForce 4 MX… any ideas anyone?
Btw, is amount of available video card memory returned by SDL_GetVideoInfo() dynamic, ie. so I can call this function every frame and create realtime graphs how much textures take ATM?
Koshmaar
Golgoth! wrote:
putenv(“SDL_VIDEODRIVER=windib”);
SDL_Init(SDL_INIT_VIDEO);
char l_driverName[16];
SDL_VideoDriverName(l_driverName, sizeof(l_driverName));
Trace(“SDL Video Driver Name: %s\n”, l_driverName);
Are you using Visual Studio?
Try using _putenv() instead of putenv().
Bye,
Gabry
Hi all
i ve tried all the suggestions… but none of them works for me… such a
simple task… feels like im taking crazy pills…
im using window xp with sdl 1.2.8… visual studio 7.1
OpenGL Vendor: NVIDIA Corporation.
OpenGL Renderer: GeForce 6800/AGP/SSE2.
OpenGL Version: 1.5.2.
whats wrong with me?
thx again
Golgoth! wrote:
Hi all
i ve tried all the suggestions… but none of them works for me… such a
simple task… feels like im taking crazy pills…
im using window xp with sdl 1.2.8… visual studio 7.1
OpenGL Vendor: NVIDIA Corporation.
OpenGL Renderer: GeForce 6800/AGP/SSE2.
OpenGL Version: 1.5.2.
whats wrong with me?
try this :
open cmd and type
set SDL_VIDEODRIVER=windib
and launch from this windows your app
Murlock