- Timestamp:
- 07/07/08 10:52:03 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneEntity.cpp
r2802 r2818 4 4 #include "Material.h" 5 5 #include "RenderState.h" 6 #include <Cg/cg.h> 7 #include <Cg/cgGL.h> 6 8 7 9 … … 9 11 { 10 12 13 CGparameter SceneEntity::sModelMatrixParam; 11 14 12 15 SceneEntity::SceneEntity(Geometry *geometry, … … 29 32 if (mTransform) 30 33 { 31 glPushMatrix(); 32 glMultMatrixf((float *)mTransform->x); 34 cgGLSetMatrixParameterfc(sModelMatrixParam, (const float *)mTransform->x); 35 //glPushMatrix(); 36 //glMultMatrixf((float *)mTransform->x); 33 37 mGeometry->Render(state); 34 38 35 glPopMatrix();39 //glPopMatrix(); 36 40 } 37 41 else 38 42 { 43 static Matrix4x4 identity = IdentityMatrix(); 44 45 cgGLSetMatrixParameterfc(sModelMatrixParam, (const float *)identity.x); 39 46 mGeometry->Render(state); 40 47 }
Note: See TracChangeset
for help on using the changeset viewer.