C# Class CgExamples.Gl_14_bulge

Show file Open project: WolfgangSt/axiom

Private Methods

Method Description
GET_PARAM ( string name ) : void
MAT_Get ( float m, int r, int c ) : float

Get Element of Matrix

MAT_Set ( float &m, int r, int c, double value ) : void

Set Element in Matrix

Run ( ) : void
SWAP_ROWS ( double &a, double &b ) : void

Change Rows means in this case just change the Refrences to the Arrays

buildLookAtMatrix ( double eyex, double eyey, double eyez, double centerx, double centery, double centerz, double upx, double upy, double upz, float &m ) : void

Build a row-major (C-style) 4x4 matrix transform based on the parameters for gluLookAt.

buildPerspectiveMatrix ( double fieldOfView, double aspectRatio, double zNear, double zFar, float &m ) : void
checkForCgError ( string situation ) : void
display ( ) : void
idle ( ) : void
invertMatrix ( float &output, float &m ) : void

Invert a row-major (C-style) 4x4 matrix.

keyboard ( byte key, int x, int y ) : void
makeRotateMatrix ( float angle, float ax, float ay, float az, float &m ) : void
makeTranslateMatrix ( float x, float y, float z, float &m ) : void
menu ( int item ) : void
multMatrix ( float &dst, float src1, float src2 ) : void

Simple 4x4 matrix by 4x4 matrix multiply.

reshape ( int width, int height ) : void
transform ( float &dst, float mat, float vec ) : void

Simple 4x4 matrix by 4-component column vector multiply.