728x90 반응형 코드/C++28 SFML CMAKE 결론만 먼저 말하면 https://github.com/piotrek-szczygiel/newland 의 소스 코드를 다운 받아 CMakeLists.txt를 열었을 때 아래와 같이 작성되어 있다. cmake_minimum_required(VERSION 3.1) project(newland) set(SFML_STATIC_LIBRARIES TRUE) find_package( SFML 2.5 COMPONENTS graphics audio REQUIRED) add_definitions(-DTMX_STATIC) include_directories(libraries) file(GLOB_RECURSE SOURCE_FILES ${PROJECT_SOURCE_DIR}/newland/*.cpp ${PROJECT_SOURCE_.. 2023. 10. 2. 깃헙 남의 게임 코드 실행 2023. 10. 1. 참조자를 반환하는 함수 #include int& ref_return(int& ref) //별명을 붙여서 { ref++; return ref; //별명을 뱉는다. } void main() { std::cout 2023. 9. 19. What does the GL_ARRAY_BUFFER target mean in glBindBuffer? https://stackoverflow.com/questions/14802854/what-does-the-gl-array-buffer-target-mean-in-glbindbuffer What does the GL_ARRAY_BUFFER target mean in glBindBuffer? I was confused about the VBO, glGenBuffers(1, &positionBufferObject); glBindBuffer(GL_ARRAY_BUFFER, positionBufferObject); Besides GL_ARRAY_BUFFER, there are other target types: stackoverflow.com Q. What does the GL_ARRAY_BUFFER target .. 2023. 8. 31. 이전 1 2 3 4 5 6 7 다음 728x90 반응형