Transform ONE object ?

Started by
0 comments, last by Seriema 21 years, 2 months ago
Hi! I'm working on a simple 3D engine in OpenGL. And wrapping most of it. My goal is that the API isn't "visible", so I can make a DX version later Well, my problem right now is how I manipulate ONE object. I have a class called cPrimitive, it's basicly a Mesh, storing vertices and vertexindexes. It can represent cubes, triangles, pyramids, and such. But I want to be able to transform the cPrimitive. Meaning Translating, Rotating or Scaling it based on it's own vertices and not the world. I know that I can:
  
glPushMatrix();
  glTransformf(...); // or whatever

glPopMatrix();
  
But that must be done every time I render. I want to _permanently_ change the primitive. Is there some OGL or GLUT support for that? Or do I have to code my own Matrix classes and bring up my old algebra book? "No lies of sugar can sweeten the sournes of reality" }+TITANIUM+{ A.K.A. DXnewbie[onMIRC] [edited by - Seriema on January 31, 2003 8:23:12 PM]
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]
Advertisement
Gotta code your own.

------------
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
"It''s all part of the conspiracy of conspirators conspiring to conspire their own conspiracies..."
_______________________________________Pixelante Game Studios - Fowl Language

This topic is closed to new replies.

Advertisement