본문 바로가기
728x90
반응형

봉인71

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.
how can Balmer find #include #include #include #include void main() { float a = 0; float b = 0; float c = 0; float d = 0; float t = 0; for (float i =1; i 2023. 8. 17.
Texture.cpp bool Texture::Load(const std::string& fileName) { /* int channels = 0; unsigned char* image = SOIL_load_image(fileName.c_str(),&mWidth, &mHeight, &channels, SOIL_LOAD_AUTO); 위 코드 미실행 시 mWidth, mHeight의 값을 별도로 채워줘야 그림이 그려짐 */ mWidth = 10; mHeight = 10; /* if (image == nullptr) { SDL_Log("SOIL failed to load image %s: %s", fileName.c_str(), SOIL_last_result()); return false; } int format = GL_RGB;.. 2023. 7. 29.
OpenGL 환경설정 1. Visual Studio 2019 실행 후 빈 프로젝트를 만들어 준다. 2. 프로젝트 -> 속성에서 구성 : 모든 구성, 플랫폼 : Win32로 바꿔 준다. 3. https://www.transmissionzero.co.uk/software/freeglut-devel/에서 freeglut 3.0.0 MSVC Package를 다운 받는다. 4. freeglut의 압축을 풀고 모든 폴더와 파일을 복사하여 1에서 만든 폴더에 붙여 넣어 준다. 5. visual studio로 돌아와 소스 파일에 main.cpp를 만들어 준다. 6. 프로젝트 -> 속성에서 C/C++ -> 일반 -> 추가 포함 디렉터리 : $(SolutionDir)include;$(SolutionDir)glew-2.1.0\include;를 .. 2023. 7. 24.
728x90
반응형