![]() GlTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR) GlTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR) GlTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, WIDTH/2, HEIGHT/2, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL) _camera->getMatricies(projection, view, model) Pos = glGetAttribLocation(pId, "position") Ĭol = glGetAttribLocation(pId, "colors") Printf("GL_RENDERER : %s\n", glGetString(GL_RENDERER) ) Printf("GL_VERSION : %s\n", glGetString(GL_VERSION) ) Window = glfwCreateWindow(WIDTH, HEIGHT, _FILE_, NULL, NULL) GlfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0) GlfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2) GlfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API) Glm::mat4 projection static glm::mat4 view static glm::mat4 model Is it possible to see a real and complete code in C++ with good explication ? I know I have to use framebuffer but I don't know how to draw triangle on this and apply blur. ![]() I have some difficult to understand examples on the web and most apply the blur on an image. I recently learn opengl es 2.0, and now I try to make a gaussian blur on triangles generate by myself. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |