コード例 #1
0
 public void useObject(RenderObject o) {
   if (unWorld != GL.BadUniformLocation) {
     GLUniform.setST(unWorld, o.mWorldTransform, false);
   }
   if (unWorldIT != GL.BadUniformLocation) {
     GLUniform.setST(unWorldIT, o.mWorldTransformIT, false);
   }
 }
コード例 #2
0
 public void useCamera(RenderCamera c) {
   if (unVP != GL.BadUniformLocation) {
     GLUniform.setST(unVP, c.mViewProjection, false);
   }
 }