Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

menu.cpp File Reference


Detailed Description

Drawing menu, including fonts and stuff.

Todo:
Choose a way of doing fonts and use that.

#include <iostream>
#include <SDL.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdlib.h>
#include "menu.h"
#include "gameobjs.h"

Include dependency graph for menu.cpp:

Include dependency graph

Functions

int initmenu (void)
 Do all the texture initialisation required for the menu.
void rendermenu (void)
 Draw the OSD of the ships.
void endmenu (void)
 Clearing up from menu rendering.

Variables

Ship playerOne
 The first ship.
Ship playerTwo
 The second ship.
GLuint fonttex1
 Texture 1.
SDL_Surface * testpic = NULL
 Gonna load me some truetype font.

Function Documentation

int initmenu void   ) 
 

Do all the texture initialisation required for the menu.

This has to be called quite late as the GL texture stuff must come after OpenGL has been set up.

void rendermenu void   ) 
 

Draw the OSD of the ships.

Simple atm, but nicely alpha blended.


Generated on Mon Jan 3 15:14:19 2005 for Graviton by  doxygen 1.3.9.1