8/29/2023 0 Comments Doom 3 unable to initialize openglGlfwSetScrollCallback(mWindow->mWindow, input::scroll_callback) GlfwSetKe圜allback(mWindow->mWindow, input::key_callback) Printf("Error code: %s While Initializing Glew \n", glewGetErrorString(res)) make sure to do this to enable new opengl GlfwMakeContextCurrent(mWindow->mWindow) GlfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE) GlfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GL_TRUE) GlfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2) GlfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4) GlfwSetErrorCallback(error::glfw_error_callback) This is the code in the dll that initializes openGL: bool AsGraphicsManager::Initialize(AsWindowCreateStruct pWindow) I am using visual studio 2013 and the engine is being built as a dll. I am creating a game engine and am starting out with simple openGL window creation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |