Two things that I can see. For the stride argument of glVertexPointer(), you can pass 0 as your vertices are tightly packed. In your call of glDrawElements, it is calling for the indices be stored in some kind of integer, which you specify as being an unsigned int, yet you are passing an array of floats. Not sure if these are your problems, but just my two cents.
xyz, forgive me for being nosy, but I though tao was an O/s VM developer (that's why I asked which platform).
Now, tao does come for windows, in teh form of Elate, but this is a java vm, so how C# mingles is beyond me.
I am thinking of TAO Group.. IS this the same Tao that you are referring to?
Sorry for going off on tangents
I am curious about all of this because I have been working with (tao-group) Tao for a few years now on various platforms and devices (non gaming or 3D apps)...
[edit] fixed url
[edited by - superdeveloper on March 5, 2004 10:08:36 AM]
quote:Original post by xyz And I get ''Object reference not set to an instance of an object'', somewhere in the closing bracket of my main function (?!)...
Whats wrong?
C# might not be my thing atm, however i would guess that error msg relates to you trying to use an object without it being setup correctly
thanks, just one more thing: i have my vertices set up like this:
public class Vertice { public float[] position = new float[3]; }
Vertice[] vertices = new Vertice[numVerts]
but then glVertexPointer requires a float[], this would work in c++: vertices->position, but there are no pointers in c# and I don''t want to use unsafe code, how can I do it?
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more