Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

sdl_gl_test.c File Reference

#include <SDL/SDL.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdio.h>
#include <stdlib.h>

Include dependency graph for sdl_gl_test.c:

Include dependency graph

Go to the source code of this file.

Functions

void quit_tutorial (int code)
void handle_key_down (SDL_keysym *keysym)
void process_events (void)
void draw_screen (void)
void setup_opengl (int width, int height)
int main (int argc, char *argv[])

Variables

GLboolean should_rotate = GL_TRUE


Function Documentation

void draw_screen void    [static]
 

Definition at line 78 of file sdl_gl_test.c.

Referenced by main().

void handle_key_down SDL_keysym *    keysym [static]
 

Definition at line 31 of file sdl_gl_test.c.

References quit_tutorial(), and should_rotate.

Referenced by process_events().

int main int    argc,
char *    argv[]
 

Definition at line 273 of file sdl_gl_test.c.

References draw_screen(), NULL, process_events(), quit_tutorial(), and setup_opengl().

void process_events void    [static]
 

Definition at line 55 of file sdl_gl_test.c.

References handle_key_down(), and quit_tutorial().

Referenced by main().

void quit_tutorial int    code [static]
 

Definition at line 18 of file sdl_gl_test.c.

Referenced by handle_key_down(), main(), and process_events().

void setup_opengl int    width,
int    height
[static]
 

Definition at line 242 of file sdl_gl_test.c.

Referenced by main().


Variable Documentation

GLboolean should_rotate = GL_TRUE [static]
 

Definition at line 16 of file sdl_gl_test.c.

Referenced by handle_key_down().


Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen