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: alvinhochun

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,318

    I guess, at least you must call `glutMainLoop`...

    I guess, at least you must call `glutMainLoop` once.
    hxxp://www.opengl.org/documentation/specs/glut/spec3/node14.html

    Also, you didn't even called `glColor*` (e.g. `glColor3f`) to set the color...
  2. Hi, I tested drawing the texture on some OpenGL...

    Hi, I tested drawing the texture on some OpenGL programs, and on some which uses custom shaders (e.g. some of OpenTK's examples), the texture appears black. Also, it doesn't work on the OpenGL 3.0...
  3. Never mind drawPixels. I managed to bind and draw...

    Never mind drawPixels. I managed to bind and draw a texture. Thanks.

    Use a random texture name? I am not sure if this is a good idea. Shouldn't all applications use glGenTextures to generate...
  4. The best way to draw a 2D image directly on a hooked window

    What is the best way to draw a 2D image directly on a window which I hooked the SwapBuffers (gdi32.dll) function, without changing the existing state?

    I am currently doing this:


    Get current...
Results 1 to 4 of 4