Skip to main content
gamedev.net
🔒 Locked

Transform ONE object ?

Started by Seriema 0 replies 250+ views
Original Post
Seriema
Seriema
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 c
LockePick
LockePick
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..."

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.