~ubuntu-branches/ubuntu/precise/openarena/precise

« back to all changes in this revision

Viewing changes to code/SDL12/include/SDL_video.h

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt
  • Date: 2008-09-05 21:14:51 UTC
  • mfrom: (1.2.1 upstream) (2.1.5 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080905211451-243bmbl6l6gdav7l
* Remove non-free code/tools/lcc (Closes: #496346)
  + Remove hunk from patch 10_fix_build_and_binary_on_alpha
  + debian/rules: Add BUILD_GAME_QVM=0 to $(MAKE) call
    (thanks to Peter De Wachter)
* Remove code/libs containing binary libraries for Mac OS X and Win32
* debian/copyright: Explain which parts of upstream's sources were removed
* debian/rules: replace ${source:Upstream-Version} by 0.7.7
  because the variable also contains the `+dfsg1' part
* Add -fsigned-char to compiler options (Closes: #487970)
  (thanks to Peter De Wachter)
* Add myself to Uploaders
* debian/control: Remove article from beginning of short description,
  don't start short description with a capital letter
* debian/openarena.6: Escape minus signs
  + fixes lintian warnings: hyphen-used-as-minus-sign

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    SDL - Simple DirectMedia Layer
3
 
    Copyright (C) 1997-2004 Sam Lantinga
 
3
    Copyright (C) 1997-2006 Sam Lantinga
4
4
 
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.
9
9
 
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.
14
14
 
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
18
18
 
19
19
    Sam Lantinga
20
20
    slouken@libsdl.org
21
21
*/
22
22
 
23
 
#ifdef SAVE_RCSID
24
 
static char rcsid =
25
 
 "@(#) $Id: SDL_video.h,v 1.19 2005/01/02 05:11:16 slouken Exp $";
26
 
#endif
27
 
 
28
23
/* Header file for access to the SDL raw framebuffer window */
29
24
 
30
25
#ifndef _SDL_video_h
31
26
#define _SDL_video_h
32
27
 
33
 
#include <stdio.h>
34
 
 
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"
38
31
 
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 */
171
166
} SDL_VideoInfo;
172
167
 
173
168
 
218
213
    SDL_GL_ACCUM_ALPHA_SIZE,
219
214
    SDL_GL_STEREO,
220
215
    SDL_GL_MULTISAMPLEBUFFERS,
221
 
    SDL_GL_MULTISAMPLESAMPLES
 
216
    SDL_GL_MULTISAMPLESAMPLES,
 
217
    SDL_GL_ACCELERATED_VISUAL,
 
218
    SDL_GL_SWAP_CONTROL
222
219
} SDL_GLattr;
223
220
 
224
221
/* flags for SDL_SetPalette() */
779
776
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
780
777
 
781
778
/*
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
783
780
 *
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().
788
 
 *
789
 
 * This is disabled in default builds of SDL.
790
783
 */
791
784
extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path);
792
785
 
793
786
/*
794
 
 * Get the address of a GL function (for extension functions)
 
787
 * Get the address of a GL function
795
788
 */
796
789
extern DECLSPEC void * SDLCALL SDL_GL_GetProcAddress(const char* proc);
797
790
 
829
822
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
830
823
 
831
824
/*
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)
833
826
 */
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);