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

Search: Search took 0.00 seconds.

  1. How to code openGL4.0 program on windows platform?

    Does any one can code OpenGL4.0 program on windows platform?
    Can you help me how to program OpenGL4.0 environment in visual studio 2008/2010?
  2. glutInitContextVersion(4, 0) no response to shader #version400

    Hi, i have a problem when I use #version 400 shader with glutInitContextVersion(4, 0), my glClearColor(0.0, 0.0, 0.0, 0.0);
    the screen is black; but when I change to glutInitContextVersion(3, 3),...
  3. Replies
    4
    Views
    3,091

    I find the fininal revolustion: g++ main_draw.cpp...

    I find the fininal revolustion: g++ main_draw.cpp main.cpp -o main -lGL -lglfw -DGL_GLEXT_PROTOTYPES,
    but I don't quite understand this -DGL_GLEXT_PROTOTYPES
  4. Replies
    4
    Views
    3,091

    my code here

    #include "main_draw.h"

    char * main_draw::read_source_code(const char *file_path)
    {
    FILE *fp = fopen(file_path, "rt");
    if(NULL == fp){
    return NULL;
    }
    char a_char;
    int size = 1;
  5. Replies
    4
    Views
    3,091

    g++ link with '-lGL' problem in ubuntu12.04

    I'm a beginer of openGL using glfw in g++, when I use g++ link with OpenGL Igot all of the openGL functions such as glCreateShader Unimplemented,
    What can I do with "g++ link with '-lGL'"....
Results 1 to 5 of 5