Skip to content

Simple framework for drawing point and displaying them using glfw. It's basically used to visualize the result of some algorithm.

Notifications You must be signed in to change notification settings

doyoubi/glwindow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

glwindow

Simple framework for drawing point and displaying them using glfw. It's basically used to visualize the result of some algorithm.

set draw square in the coordinate whose original point is in left bottom default is full screen, which means original point is (0,0) and (width, height) is the same as window size
dyb::ScreenManager::instance()->set_draw_square(int left_bottom_x, int left_bottom_y, int width, int height);

draw point, line
ScreenManager::drawPoint(const glm::ivec2 & point, const glm::vec3 & rgb);
ScreenManager::drawLine(const ivec2 & start, const ivec2 & end, const vec3 & rgb);

inside the main loop, you have to push the data to graphic card using drawToGL
void drawToGL()

About

Simple framework for drawing point and displaying them using glfw. It's basically used to visualize the result of some algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published