Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!

We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Member Since 09 Jul 2013
Offline Last Active Aug 09 2013 11:42 PM

Topics I've Started

glvertexpointer std::vector, struct memory opengl

17 July 2013 - 08:50 AM

Hello, i use struct

struct Vertex
float pos[3];
float tex[2] = {0, 0};
float norm[3] = {0, 0, 0};
int index_mtl;

i use vector

std::vector<Vertex> verts;

how use "glvertexpointer" for my struct vector.

I wanted to drawing by that function. in the end I did not succeed.

void Obj_render::DrawObject()
glVertexPointer(3, GL_FLOAT, 0, verts.data()->pos);

// deactivate vertex arrays after drawing


Properly implemented loader objects?

09 July 2013 - 07:04 AM

hello smile.png . I have implemented a loader object that all true I do?


I attached the source file.