2
2
SDL - Simple DirectMedia Layer
3
Copyright (C) 1997-2004 Sam Lantinga
3
Copyright (C) 1997-2006 Sam Lantinga
5
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
6
modify it under the terms of the GNU Lesser General Public
7
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
8
version 2.1 of the License, or (at your option) any later version.
10
10
This library is distributed in the hope that it will be useful,
11
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
13
Lesser General Public License for more details.
15
You should have received a copy of the GNU Library General Public
16
License along with this library; if not, write to the Free
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
"@(#) $Id: SDL_video.h,v 1.19 2005/01/02 05:11:16 slouken Exp $";
28
23
/* Header file for access to the SDL raw framebuffer window */
30
25
#ifndef _SDL_video_h
31
26
#define _SDL_video_h
35
#include "SDL_types.h"
36
#include "SDL_mutex.h"
28
#include "SDL_stdinc.h"
29
#include "SDL_error.h"
37
30
#include "SDL_rwops.h"
39
32
#include "begin_code.h"
168
161
Uint32 UnusedBits3 :16;
169
162
Uint32 video_mem; /* The total amount of video memory (in K) */
170
163
SDL_PixelFormat *vfmt; /* Value: The format of the video surface */
164
int current_w; /* Value: The current video mode width */
165
int current_h; /* Value: The current video mode height */
218
213
SDL_GL_ACCUM_ALPHA_SIZE,
220
215
SDL_GL_MULTISAMPLEBUFFERS,
221
SDL_GL_MULTISAMPLESAMPLES
216
SDL_GL_MULTISAMPLESAMPLES,
217
SDL_GL_ACCELERATED_VISUAL,
224
221
/* flags for SDL_SetPalette() */
779
776
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
782
* Dynamically load a GL driver, if SDL is built with dynamic GL.
779
* Dynamically load an OpenGL library, or the default one if path is NULL
784
* SDL links normally with the OpenGL library on your system by default,
785
* but you can compile it to dynamically load the GL driver at runtime.
786
781
* If you do this, you need to retrieve all of the GL functions used in
787
782
* your program from the dynamic library using SDL_GL_GetProcAddress().
789
* This is disabled in default builds of SDL.
791
784
extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path);
794
* Get the address of a GL function (for extension functions)
787
* Get the address of a GL function
796
789
extern DECLSPEC void * SDLCALL SDL_GL_GetProcAddress(const char* proc);
829
822
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
832
* Sets/Gets the title and icon text of the display window
825
* Sets/Gets the title and icon text of the display window (UTF-8 encoded)
834
827
extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title, const char *icon);
835
828
extern DECLSPEC void SDLCALL SDL_WM_GetCaption(char **title, char **icon);