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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    470

    Freedom of movement

    I am a little stuck with making freedom of movement with the mouse, what I want is to have the controls of a 3D model making program. I am using Windows.

    Here is my viewport structure, pretty...
  2. Replies
    0
    Views
    972

    Change an OpenGL context's size

    Discussion moved to Stackoverflow:

    http://stackoverflow.com/questions/19332918/change-an-opengl-contexts-size
  3. Replies
    1
    Views
    2,123

    Bump!!!!!

    Bump!!!!!
  4. Replies
    1
    Views
    2,123

    CreateFont can't change font

    I don't seem to be able to change the font in a CreateFont call:


    text.font = CreateFont(0, 0, 0, 0, FW_REGULAR, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS,...
  5. Replies
    2
    Views
    969

    Does glDeleteProgram free shaders?

    In my program I have a function to compile shaders which creates each shader index variable locally to be binded to the program object which it returns like so:

    (simplified):

    GLuint...
  6. Replies
    6
    Views
    2,155

    Thanks very much!

    Thanks very much!
  7. Replies
    6
    Views
    2,155

    Thanks for your answer, I have made slight...

    Thanks for your answer, I have made slight adaptations to my loopMenu function, as well as updating testVertex.glsl; my drawing code which shows how my texture coords are set up is also here.

    I...
  8. Replies
    6
    Views
    2,155

    Thanks for your help, now the whole rectangle is...

    Thanks for your help, now the whole rectangle is one solid color which appears to be the first color in the image; so what else is wrong? Do I need to glEnable anything else perhaps?
  9. Replies
    6
    Views
    2,155

    Texturing using shaders

    I'm trying to upgrade my code to modern OpenGL, so far I've successfully got a rectangular VBO drawn on the screen and was able to get it textured without shaders. But now I'm having trouble getting...
  10. Thread: Texturing a VBO

    by Quaver
    Replies
    5
    Views
    2,055

    Sorry for the triple post, but it seems no one is...

    Sorry for the triple post, but it seems no one is replying.

    I have a new question, if I remove wglDeleteContext(hRC) in my deinit routine to stop the application crashing. Will there be any...
  11. Thread: Texturing a VBO

    by Quaver
    Replies
    5
    Views
    2,055

    Sorry for the double post; I have narrowed down...

    Sorry for the double post; I have narrowed down the crash:

    The application crashes when I press close:


    void deinitOpenGL(void) {
    if(!wglMakeCurrent(NULL, NULL)) {
    logError("1");
    }...
  12. Thread: Texturing a VBO

    by Quaver
    Replies
    5
    Views
    2,055

    Thanks so much! It's working now; but it still...

    Thanks so much! It's working now; but it still crashes, so the crash must come from another part of my code.
  13. Thread: Texturing a VBO

    by Quaver
    Replies
    5
    Views
    2,055

    Texturing a VBO

    I am trying to create a textured 2D rectangle VBO; I had some code working to create a rectangular VBO (commented out) however when I changed how the VBO struct is laid out to include texture...
  14. Replies
    10
    Views
    2,189

    Thanks for the information, I still can't seem to...

    Thanks for the information, I still can't seem to stop the crash though.
  15. Replies
    10
    Views
    2,189

    Thanks for your help, I removed the "*...

    Thanks for your help, I removed the "* sizeof(float)" however it still crashes.
  16. Replies
    10
    Views
    2,189

    I've narrowed down the crash the the glDrawArrays...

    I've narrowed down the crash the the glDrawArrays call.
  17. Replies
    10
    Views
    2,189

    I'm having a bit of trouble with this, I created...

    I'm having a bit of trouble with this, I created two functions, one to create the VBO, and the other to load it:



    GLuint createSquareVBO(int width, int height) {
    float vertices[4][3] = { {0,...
  18. Replies
    10
    Views
    2,189

    Is there anyway to just create one square VBO and...

    Is there anyway to just create one square VBO and then stretch it to be the shape I want. Or do I have to make a new one for each different size EG: 42 x 30, 32 x 27, etc...
  19. Replies
    10
    Views
    2,189

    Thanks for your help. I forgot to mention that...

    Thanks for your help. I forgot to mention that modern OpenGL doesn't support glBegin or glEnd functions. Do I have to replace these with VBOs, or is there a simpler method?
  20. Replies
    10
    Views
    2,189

    Modern OpenGL2D Ortho Textured Rectangle

    In old OpenGL, once the projection matrix has been set to GLOrtho2D, you could simply use glTranslatef to position a 2D rectangle and then draw it like so:


    void drawTexturedSurface(int width,...
  21. * BUMP * Is there maybe another forum I should...

    * BUMP *

    Is there maybe another forum I should post this on?
  22. I replaced my previous model with a simple cube,...

    I replaced my previous model with a simple cube, and am getting this:

    http://s24.postimg.org/gdnrbf8yd/cube.png

    Maybe I'm missing something, it seems that it's got the right size, but wrong...
  23. Replies
    6
    Views
    2,679

    To make anything have half transparency, set it's...

    To make anything have half transparency, set it's RGB values to 1 so the color is unchanged, then modify the 4'th parameter which is for alpha.


    glColor4f(1.0f, 1.0f, 1.0f, 0.5f);

    Make sure to...
  24. I added a memset 0 to vertices and normals like...

    I added a memset 0 to vertices and normals like so:


    vertices = (float(*)[3])malloc(sizeof(float) * 9 * model->faceCount);
    if(vertices == NULL) return 0;
    memset(vertices, 0, sizeof(float) *...
  25. Thanks for your help. Using this code to draw the...

    Thanks for your help. Using this code to draw the object:


    glEnableClientState(GL_VERTEX_ARRAY);
    glEnableClientState(GL_NORMAL_ARRAY);
    glBindBuffer(GL_ARRAY_BUFFER,...
Results 1 to 25 of 35
Page 1 of 2 1 2