Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: banana joe

Search: Search took 0.00 seconds.

  1. relative position of a pixel in fragment shader

    How can I get the relative position of a pixel in a fragment shader? I only know gl_FragCoord​, but gl_FragCoord​ returns only the absolute coordinate.
  2. Replies
    1
    Views
    498

    Now i have shortened the code: #include...

    Now i have shortened the code:



    #include "GL/glew.h"
    #include "GL/glext.h"
    #include "GL/glu.h"
    #include "GL/glut.h"

    #include <cstdio>
  3. Replies
    1
    Views
    498

    SIGILL on glBegin

    I have a programm wich crashes at glBegin in a simple drawing function.

    At first here's my main function


    int main(int argc, char **argv)
    {
    glutInit(&argc, argv);...
Results 1 to 3 of 3