C# Class NeHe.Lesson13

Lesson 13: Using Bitmap Fonts.

Original Author: Jeff Molofee (NeHe) http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=13

C# Implementation: Randy Ridge http://www.taoframework.com

Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: WolfgangSt/axiom

Public Methods

Method Description
Lesson13 ( ) : System

Creates a new instance.

Private Methods

Method Description
BuildFont ( ) : void

Builds our bitmap font.

CreateGLWindow ( string title, int width, int height, int bits, bool fullscreenflag ) : bool

Creates our OpenGL Window.

DrawGLScene ( ) : bool

Here's where we do all the drawing.

Form_Activated ( object sender, EventArgs e ) : void

Handles the form's activated event.

Form_Closing ( object sender, CancelEventArgs e ) : void

Handles the form's closing event.

Form_Deactivate ( object sender, EventArgs e ) : void

Handles the form's deactivate event.

Form_KeyDown ( object sender, KeyEventArgs e ) : void

Handles the form's key down event.

Form_KeyUp ( object sender, KeyEventArgs e ) : void

Handles the form's key down event.

Form_Resize ( object sender, EventArgs e ) : void

Handles the form's resize event.

InitGL ( ) : bool

All setup for OpenGL goes here.

KillFont ( ) : void

Delete the font list.

KillGLWindow ( ) : void

Properly kill the window.

ReSizeGLScene ( int width, int height ) : void

Resizes and initializes the GL window.

Run ( ) : void
glPrint ( string text ) : void

Custom GL "print" routine.

Method Details

Lesson13() public method

Creates a new instance.
public Lesson13 ( ) : System
return System