Skip to content

glisy/glfw-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glfw-shell

GLFW context creation and render loop helper

Installation

$ clib install glisy/glfw-shell

Usage

#include <glfw-shell/glfw-shell.h>

int
main (void) {
  GLFWwindow *window;
  int width = 640;
  int height = 640;
  GLFW_SHELL_CONTEXT_INIT(3, 2);
  GLFW_SHELL_WINDOW_INIT(window, width, height);

  // initialize objects...

  GLFW_SHELL_RENDER(window, {
    // render here
  });
  return 0;
}

License

MIT

About

GLFW context creation and render loop helper

Resources

License

Stars

Watchers

Forks

Packages

No packages published