Skip to content

ckcool6/opengl_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to setup

download winlib

download glfw and glad

.h files put in include folder, .dll and .a files put in lib folder.

write CMakeLists.txt

cmake_minimum_required(VERSION 3.27)
project(example)

set(CMAKE_CXX_STANDARD 17)

# 头文件
include_directories("./include/")

# 链接库
link_directories("./lib/")

# 编译
add_executable(example window.cpp glad.c)

# 连接
target_link_libraries(example glfw3 gdi32 opengl32)

run vscode's cmake extension,press F7

goto build folder then run mingw32-make.exe

About

一些OpenGL的探索

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published