trying to understand vertex2f

About Monkey 2 Forums Monkey 2 Programming Help trying to understand vertex2f

This topic contains 3 replies, has 3 voices, and was last updated by  cocon 2 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6468

    abakobo
    Participant

    What are the texCoorx Fields for?

    [/crayon]

    I can’t see any difference when calling addVertex (hidden method from Canvas)

    [/crayon]
    #6484

    abakobo
    Participant

    http://stackoverflow.com/questions/5532595/how-do-opengl-texture-coordinates-work

    I should go into GL but I’m afraid it’s going to eat me a lot of time…

    can we already put a texture on a triangle or quad with canvas’ drawQuad and drawTriangle?

    #6485

    codifies
    Participant
    #6510

    cocon
    Participant

     

    How about making a replica of “DrawImage” instead?
    If you have trouble with the 3 vertices, keep 4 vertices.
    The 3 + 4 vertices will have the same data however.

    Otherwise you can use this instead DrawPrimitives
    You would have exactly the same result but send the data arrays instantly.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.