Search:

Type: Posts; User: bboyandru

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    3,252

    Re: problem with glDrawArrays

    The correct array for vertices is:
    GLfloat vertCoords[] = {
    -1, 1, 0,
    -1, -1, 0,
    1, -1, 0,
    1, 1, 0,
    -1, 1, 0
    };
  2. Replies
    2
    Views
    1,835

    Re: wrong transparency when drawing quads

    Thank you Steve, that was the problem.
    I have changed the array to
    GLfloat vertCoords[] = {
    -1, 1, 0,
    -1, -1, 0,
    1, -1, 0,
    1, 1, 0,
    -1, 1, 0
    };
    and everything looks good now.
  3. Replies
    2
    Views
    1,835

    wrong transparency when drawing quads

    Hi,
    I am using 5 points to draw a quad in opengles. Everithing is ok, but when I am trying to apply some transparency to this quad, using glColor4f the transparency/color is not uniform, I can...
  4. Replies
    2
    Views
    3,252

    Re: problem with glDrawArrays

    Hi, techkatta
    Try to use glTranslatef(0,0,-1.0f); before drawing. If still nothing is on screen try drawing just a simple face.
    Here is an example with 5 points.
    <code>
    GLfloat test_vertices[] =...
Results 1 to 4 of 4