Monday, November 19, 2007

The Amazing Cube Demo


The Awesome cube that i rescently changed to a rectangle was the basic operation for the first step before getting into the one with frames. Most part that was challenging was redefining the variable to my own.
bool deviceforcube();//check device cap
void onLostDevice();//error
void resetingDevices();//onResetDevices
void newScenecube(float dt);//updateScene
void DrawingTheScene();//DrawScene
As you can see the one with the error cause the most damage or should i say most problems to the process but with time and effort the other variables was a success. The most "Proud" of the change was the ability that i can change the cube into anything i desire, which happen to be the rectangle "of coarse" since its one step closer to my success. LOL

v[0] = VertexPos(-3.0f, -1.0f, -1.0f); // Bottom front.//changes first from 1.0
v[1] = VertexPos(-3.0f, 1.0f, -1.0f); // bottom left.//changes first from 1.0
v[2] = VertexPos( 1.0f, 1.0f, -1.0f); // Top Right.
v[3] = VertexPos( 1.0f, -1.0f, -1.0f); // Bottom Right.
v[4] = VertexPos(-3.0f, -1.0f, 1.0f); // bottom left//changes first from 1.0
v[5] = VertexPos(-3.0f, 1.0f, 1.0f); // Top Left.//changes first from 1.0
v[6] = VertexPos( 1.0f, 1.0f, 1.0f); // Top Back.
v[7] = VertexPos( 1.0f, -1.0f, 1.0f); // bottom back.
//to complete the rectangle
AS for the most more post will be uploaded once we get the frames code to make the cube more interesting, until then rock on with the rectangle. yeah!

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home