Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

KX_BlenderGL.cpp File Reference

#include "KX_BlenderGL.h"
#include "blender.h"
#include "screen.h"
#include "sector.h"
#include <GL/gl.h>

Go to the source code of this file.

Defines

#define cpack(x)    glColor3ub( ((x)&0xFF), (((x)>>8)&0xFF), (((x)>>16)&0xFF) )

Functions

void myswapbuffers ()
void areawinset (short win)
void drawcamera (struct Object* ob)
void error (char* err)
void waitcursor (int)
void allqueue (unsigned short,short)
void screen_swapbuffers ()
void mymultmatrix (float mat[][4])
unsigned int rgb_to_cpack (float r,float g,float b)
void drawname (struct Object* ob)
void drawaxes (float size)
int set_tpage (struct TFace* tface)
void glutSwapBuffers ()
void drawDispList (Object *ob, int dt)
void setlinestyle (int)
void drawcircball (float* cent,float rad,float tmat[][4])
void mygetmatrix (float mat[][4])
int set_gl_light_bylayer (int objectlayer)
void setviewmatrixview3d ()
void setwinmatrixview3d (struct BlenderRect* rect)
void build_sectorlist (struct Object* cam)
void spack (unsigned int ucol)
void matrixGlyph (struct ImBuf * ibuf, unsigned short unicode, float *centerx, float *centery, float *sizex, float *sizey, float *transx, float *transy, float *movex, float *movey, float *advance)
void fmprstr (char* str)
void persp (int a)
void fmsetfont (void *type)
void init_gl_stuff ()
void default_gl_light ()
void reset_slowparents ()
void warp_pointer (int x,int y)
void BL_warp_pointer (int x,int y)
int BL_SaveState ()
void BL_RestoreState ()
void BL_SwapBuffers ()
void update_realtime_textures ()
void BL_FixedUpdate ()
void init_sectors ()
void init_lifes ()
void init_devs ()
void BL_InitSectorVisibility ()
void end_sectors ()
void end_lifes (int restore)
void BL_ExitSectorVisibility (int restore)
void draw_gamedebug_info ()
void BL_EndFrame ()
void BL_BeginFrame ()
void BL_DisplayCamera ()
void BL_DoDebugColors (Object* ob)
 wireframe gets color dependent on the state of the logic system so when an actuators is busy, it's owner-object is colored. More...

int Mat4Invert (float inverse[][4], float mat[][4])
void BL_DisplaySymbolicShapes (Object* ob,int dt)
void BL_DrawShadow (struct Object* blenderobject,int drawingmode,bool wireframe)
void draw_bounding_volume (Object* ob)
void BL_DisplayBoundingBox (struct Object* ob)
void BL_DisplaySolid (struct Object* blenderobject,int drawingmode)
void drawview3d_simul (int)
void BL_RenderScene ()
int BL_getlayer (struct Object* ob)
int BL_set_gl_light (int layer,float* viewmat,int dummy)
void BL_setviewmatrixview3d ()
float BL_GetViewDistance (struct Global* glob)
float* BL_GetViewMatrix (struct Global* glob)
Object* BL_GetCameraObject (struct Global* glob)
const BL_Mat4x4BL_GetProjectionMatrix (struct ScrArea* area)
bool BL_ExternalCameraPerspective ()
BL_BlenderWorldInfo BL_GetBlenderWorldInfo (struct Global* glob)
int BL_GetDrawType (struct Global* glob)
void BL_BuildSectorList ()
void BL_RenderText (int mode,const char* textstr,int textlen,struct TFace* tface, float v1[3],float v2[3],float v3[3],float v4[3])
void BL_print_gamedebug_line (char* text, int xco, int yco)
int BL_GetWindowHeight ()
int BL_GetWindowWidth ()
int BL_GetWindowMinY ()
int BL_GetWindowMinX ()

Variables

struct ScrArea* curarea


Define Documentation

#define cpack( x )   glColor3ub( ((x)&0xFF), (((x)>>8)&0xFF), (((x)>>16)&0xFF) )
 

Definition at line 178 of file KX_BlenderGL.cpp.

Referenced by BL_DisplayCamera(), BL_DisplaySymbolicShapes(), BL_DoDebugColors(), and BL_print_gamedebug_line().


Function Documentation

void BL_BeginFrame ( )
 

Definition at line 167 of file KX_BlenderGL.cpp.

Referenced by KX_BlenderCanvas::BeginFrame().

void BL_BuildSectorList ( )
 

Definition at line 430 of file KX_BlenderGL.cpp.

void BL_DisplayBoundingBox ( struct Object * ob )
 

Definition at line 311 of file KX_BlenderGL.cpp.

void BL_DisplayCamera ( )
 

Definition at line 180 of file KX_BlenderGL.cpp.

void BL_DisplaySolid ( struct Object * blenderobject,
int drawingmode )
 

Definition at line 319 of file KX_BlenderGL.cpp.

void BL_DisplaySymbolicShapes ( Object * ob,
int dt )
 

Definition at line 225 of file KX_BlenderGL.cpp.

void BL_DoDebugColors ( Object * ob )
 

wireframe gets color dependent on the state of the logic system so when an actuators is busy, it's owner-object is colored.

Definition at line 200 of file KX_BlenderGL.cpp.

void BL_DrawShadow ( struct Object * blenderobject,
int drawingmode,
bool wireframe )
 

Definition at line 262 of file KX_BlenderGL.cpp.

void BL_EndFrame ( )
 

Definition at line 159 of file KX_BlenderGL.cpp.

Referenced by KX_BlenderCanvas::EndFrame().

void BL_ExitSectorVisibility ( int restore )
 

Definition at line 150 of file KX_BlenderGL.cpp.

Referenced by Ketsji_Start1().

bool BL_ExternalCameraPerspective ( )
 

Definition at line 390 of file KX_BlenderGL.cpp.

Referenced by BL_ConvertBlenderObjects().

void BL_FixedUpdate ( )
 

Definition at line 129 of file KX_BlenderGL.cpp.

BL_BlenderWorldInfo BL_GetBlenderWorldInfo ( struct Global * glob )
 

Definition at line 396 of file KX_BlenderGL.cpp.

Referenced by BL_ConvertBlenderObjects().

Object * BL_GetCameraObject ( struct Global * glob )
 

Definition at line 377 of file KX_BlenderGL.cpp.

Referenced by BL_ConvertBlenderObjects().

int BL_GetDrawType ( struct Global * glob )
 

Definition at line 425 of file KX_BlenderGL.cpp.

const BL_Mat4x4 * BL_GetProjectionMatrix ( struct ScrArea * area )
 

Definition at line 383 of file KX_BlenderGL.cpp.

float BL_GetViewDistance ( struct Global * glob )
 

Definition at line 354 of file KX_BlenderGL.cpp.

float * BL_GetViewMatrix ( struct Global * glob )
 

Definition at line 372 of file KX_BlenderGL.cpp.

int BL_GetWindowHeight ( )
 

Definition at line 519 of file KX_BlenderGL.cpp.

Referenced by BL_ConvertSensors(), KX_BlenderMouseDevice::ConvertBlenderEvent(), KX_BlenderCanvas::GetHeight(), and KX_BlenderCanvas::KX_BlenderCanvas().

int BL_GetWindowMinX ( )
 

Definition at line 532 of file KX_BlenderGL.cpp.

Referenced by KX_BlenderMouseDevice::ConvertBlenderEvent(), and KX_BlenderCanvas::KX_BlenderCanvas().

int BL_GetWindowMinY ( )
 

Definition at line 528 of file KX_BlenderGL.cpp.

Referenced by KX_BlenderMouseDevice::ConvertBlenderEvent(), and KX_BlenderCanvas::KX_BlenderCanvas().

int BL_GetWindowWidth ( )
 

Definition at line 523 of file KX_BlenderGL.cpp.

Referenced by BL_ConvertSensors(), KX_BlenderCanvas::GetWidth(), and KX_BlenderCanvas::KX_BlenderCanvas().

void BL_InitSectorVisibility ( )
 

Definition at line 139 of file KX_BlenderGL.cpp.

Referenced by Ketsji_Start1().

void BL_RenderScene ( )
 

Definition at line 327 of file KX_BlenderGL.cpp.

void BL_RenderText ( int mode,
const char * textstr,
int textlen,
struct TFace * tface,
float v1[3],
float v2[3],
float v3[3],
float v4[3] )
 

Definition at line 435 of file KX_BlenderGL.cpp.

Referenced by KX_BlenderRenderTools::RenderText().

void BL_RestoreState ( )
 

Definition at line 96 of file KX_BlenderGL.cpp.

Referenced by Ketsji_Start1().

int BL_SaveState ( )
 

Definition at line 69 of file KX_BlenderGL.cpp.

Referenced by Ketsji_Start1().

void BL_SwapBuffers ( )
 

Definition at line 112 of file KX_BlenderGL.cpp.

Referenced by KX_BlenderCanvas::SwapBuffers().

int BL_getlayer ( struct Object * ob )
 

Definition at line 336 of file KX_BlenderGL.cpp.

void BL_print_gamedebug_line ( char * text,
int xco,
int yco )
 

Definition at line 509 of file KX_BlenderGL.cpp.

Referenced by KX_BlenderRenderTools::RenderText2D().

int BL_set_gl_light ( int layer,
float * viewmat,
int dummy )
 

Definition at line 342 of file KX_BlenderGL.cpp.

Referenced by KX_BlenderRenderTools::ProcessLighting().

void BL_setviewmatrixview3d ( )
 

Definition at line 349 of file KX_BlenderGL.cpp.

void BL_warp_pointer ( int x,
int y )
 

Definition at line 60 of file KX_BlenderGL.cpp.

Referenced by KX_BlenderCanvas::KX_BlenderCanvas().

int Mat4Invert ( float inverse[][4],
float mat[][4] )
 

Referenced by BL_DisplaySymbolicShapes().

void allqueue ( unsigned short,
short )
 

Referenced by BL_RestoreState().

void areawinset ( short win )
 

Referenced by BL_EndFrame().

void build_sectorlist ( struct Object * cam )
 

Referenced by BL_BuildSectorList().

void default_gl_light ( )
 

Referenced by BL_BeginFrame(), and BL_EndFrame().

void drawDispList ( Object * ob,
int dt )
 

Referenced by BL_DisplaySolid().

void draw_bounding_volume ( Object * ob )
 

Referenced by BL_DisplayBoundingBox().

void draw_gamedebug_info ( )
 

void drawaxes ( float size )
 

Referenced by BL_DisplaySymbolicShapes().

void drawcamera ( struct Object * ob )
 

Referenced by BL_DisplayCamera().

void drawcircball ( float * cent,
float rad,
float tmat[][4] )
 

Referenced by BL_DisplaySymbolicShapes().

void drawname ( struct Object * ob )
 

Referenced by BL_DisplaySymbolicShapes().

void drawview3d_simul ( int )
 

void end_lifes ( int restore )
 

Referenced by BL_ExitSectorVisibility().

void end_sectors ( )
 

Referenced by BL_ExitSectorVisibility().

void error ( char * err )
 

Referenced by BL_SaveState().

void fmprstr ( char * str )
 

Referenced by BL_print_gamedebug_line().

void fmsetfont ( void * type )
 

Referenced by BL_print_gamedebug_line().

void glutSwapBuffers ( )
 

Referenced by BL_SwapBuffers(), MyGlutDisplay(), KX_GlutCanvas::SwapBuffers(), and GlutCanvas::SwapBuffers().

void init_devs ( )
 

void init_gl_stuff ( )
 

Referenced by BL_SaveState().

void init_lifes ( )
 

Referenced by BL_InitSectorVisibility().

void init_sectors ( )
 

void matrixGlyph ( struct ImBuf * ibuf,
unsigned short unicode,
float * centerx,
float * centery,
float * sizex,
float * sizey,
float * transx,
float * transy,
float * movex,
float * movey,
float * advance )
 

Referenced by BL_RenderText().

void mygetmatrix ( float mat[][4] )
 

void mymultmatrix ( float mat[][4] )
 

void myswapbuffers ( )
 

void persp ( int a )
 

Referenced by BL_print_gamedebug_line().

void reset_slowparents ( )
 

Referenced by BL_RestoreState().

unsigned int rgb_to_cpack ( float r,
float g,
float b )
 

Referenced by BL_DoDebugColors().

void screen_swapbuffers ( )
 

int set_gl_light_bylayer ( int objectlayer )
 

Referenced by BL_set_gl_light().

int set_tpage ( struct TFace * tface )
 

Referenced by KX_BlenderPolyMaterial::ActivateMaterial(), and BL_EndFrame().

void setlinestyle ( int )
 

Referenced by BL_DisplaySymbolicShapes().

void setviewmatrixview3d ( )
 

Referenced by BL_setviewmatrixview3d().

void setwinmatrixview3d ( struct BlenderRect * rect )
 

void spack ( unsigned int ucol )
 

Referenced by BL_RenderText().

void update_realtime_textures ( )
 

Referenced by BL_FixedUpdate(), and KX_KetsjiEngine::MainLoopCallback().

void waitcursor ( int )
 

Referenced by BL_RestoreState(), and BL_SaveState().

void warp_pointer ( int x,
int y )
 

Referenced by BL_warp_pointer().


Variable Documentation

struct ScrArea * curarea
 

Definition at line 4 of file KX_BlenderGL.cpp.


Generated at Thu Feb 1 13:03:17 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000