SDL_putenv

SDL_putenv -- Used to change an SDL Environment Variable.

Syntax

#include "SDL.h"

int SDL_putenv(const char *variable);

Description

Pass it a text string from this list: SDL_envvars

Return Value

I have no idea what the return value contains. Probably 0 for Success and Non-Zero for Failure

This function has a sister function named SDL_getenv

Example

SDL_putenv("SDL_VIDEO_CENTERED=center"); //Center the game Window
SDL_WM_SetCaption(szTitle, NULL); //Sets the Window Title
SDL_WM_SetIcon(imgIcon, NULL);    //Sets the Window Icon
screen = SDL_SetVideoMode(640, 480, 0, SDL_SWSURFACE); //Video mode should be variable

See Also

SDL_envvars, SDL_SetVideoMode


CategorySDLGeneral

SDL_putenv (last edited 2010-01-10 07:11:37 by d-216-246-155-55)