update
This commit is contained in:
parent
f804876100
commit
840e2ebe30
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,7 +27,6 @@ build
|
|||||||
*.lai
|
*.lai
|
||||||
*.la
|
*.la
|
||||||
*.a
|
*.a
|
||||||
*.lib
|
|
||||||
|
|
||||||
# Executables
|
# Executables
|
||||||
*.exe
|
*.exe
|
||||||
|
@ -11,14 +11,18 @@ pybind11_add_module(${PROJECT_NAME} ${SRC})
|
|||||||
# add_subdirectory( ${PROJECT_SOURCE_DIR}/glew-cmake)
|
# add_subdirectory( ${PROJECT_SOURCE_DIR}/glew-cmake)
|
||||||
# target_link_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/build/glew-cmake/lib)
|
# target_link_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/build/glew-cmake/lib)
|
||||||
# target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/glew-cmake/include/)
|
# target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/glew-cmake/include/)
|
||||||
# target_link_libraries(${PROJECT_NAME} PRIVATE glew)
|
|
||||||
|
|
||||||
|
# target_link_libraries(${PROJECT_NAME} PRIVATE glew)
|
||||||
|
target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include)
|
||||||
|
|
||||||
|
target_link_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/libs)
|
||||||
|
target_link_libraries(${PROJECT_NAME} PRIVATE glew32.lib)
|
||||||
|
|
||||||
add_subdirectory( ${PROJECT_SOURCE_DIR}/glfw )
|
add_subdirectory( ${PROJECT_SOURCE_DIR}/glfw )
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE glfw)
|
target_link_libraries(${PROJECT_NAME} PRIVATE glfw)
|
||||||
|
|
||||||
find_package(OpenGl REQUIRED)
|
find_package(OpenGl REQUIRED)
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include )
|
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE OpenGL::GL )
|
target_link_libraries(${PROJECT_NAME} PRIVATE OpenGL::GL )
|
||||||
|
|
||||||
|
|
||||||
|
2618
include/GL/eglew.h
Normal file
2618
include/GL/eglew.h
Normal file
File diff suppressed because it is too large
Load Diff
23686
include/GL/glew.h
Normal file
23686
include/GL/glew.h
Normal file
File diff suppressed because it is too large
Load Diff
1775
include/GL/glxew.h
Normal file
1775
include/GL/glxew.h
Normal file
File diff suppressed because it is too large
Load Diff
1447
include/GL/wglew.h
Normal file
1447
include/GL/wglew.h
Normal file
File diff suppressed because it is too large
Load Diff
BIN
libs/glew32.lib
Normal file
BIN
libs/glew32.lib
Normal file
Binary file not shown.
BIN
libs/glew32s.lib
Normal file
BIN
libs/glew32s.lib
Normal file
Binary file not shown.
@ -1,7 +1,9 @@
|
|||||||
#include <pybind11/stl.h>
|
#include <pybind11/stl.h>
|
||||||
|
#include <iostream>
|
||||||
|
#include <GL/glew.h>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <glpy.h>
|
#include <glpy.h>
|
||||||
#include <GL/glew.h>
|
|
||||||
|
|
||||||
int tests::glfw_window(unsigned width,unsigned height, std::string title)
|
int tests::glfw_window(unsigned width,unsigned height, std::string title)
|
||||||
{
|
{
|
||||||
@ -24,6 +26,8 @@ int tests::glfw_window(unsigned width,unsigned height, std::string title)
|
|||||||
/* Make the window's context current */
|
/* Make the window's context current */
|
||||||
glfwMakeContextCurrent(window);
|
glfwMakeContextCurrent(window);
|
||||||
|
|
||||||
|
std::cout<<"-- OPEN_GL_VERSION: "<<glGetString(GL_VERSION)<<std::endl;
|
||||||
|
|
||||||
/* Loop until the user closes the window */
|
/* Loop until the user closes the window */
|
||||||
while (!glfwWindowShouldClose(window))
|
while (!glfwWindowShouldClose(window))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user