Category : opengl

I am working in Clion. I need connect library glfw. I downloaded it and put in the folder of project. this is my project structure This is CMakeLists.txt file: # cmake_minimum_required(VERSION <specify CMake version here>) project(VoxelEngine) cmake_minimum_required(VERSION 2.8) set(CMAKE_CXX_STANDARD 17) add_executable(VoxelEngine main.cpp) I want to include this library in my cpp and h files. What ..

Read more

Unhandled exception in 0x7B372F75 (ig9icd32.dll) in forespend.exe: 0xC0000005: access violation writing to location 0x07E00000. i have tried to run glClear(GL_COLOR_BUFFER_BIT); but it returned me this error, my program kept running and working, but seems that it wont work properly due to this error. the glClear is working with other tags inside of it like ´GL_DEPTH_BUFFER_BIT´ ..

Read more

I am trying to map a texture from a frame buffer object to a triangle mesh flat surface. The problem is that it ends up being black. Code for frame buffer. glGenFramebuffers(1, &fbo); glBindFramebuffer(GL_FRAMEBUFFER, fbo); glGenTextures(1, &fbo_texture); glBindTexture(GL_TEXTURE_2D, fbo_texture); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1024, 1024, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR ); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); ..

Read more