Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jjamesdk

Pages: [1]
1
Graphics / Extending sf::Vertex
« on: March 10, 2015, 04:48:49 am »
Hi all,

I was attempting to extend sf::Vertex, by creating my own custom vertex class and inheriting from this. I am able to create the methods I want fine, and sf::VertexArray will append with my custom Vertex class. However, when I try to access my new methods from an index within my sf::VertexArray container, I only have access to to the existing sf::Vertex properties, such as position, color, and texCoords. The strange thing is I can access my new methods outside of the sf::VertexArray object, just not within it.

Am I going about this the wrong way? or was this just not intended to work this way?

- Thanks All

Pages: [1]
anything