Skip to content

moezgwall/RE-opengl-Easy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reOpenGL — Lightweight OpenGL Abstraction in C.

reOpenGL is a lightweight OpenGL utility and abstraction layer written in pure C.

Features

  • Easy window creation with GLFW
  • Texture loading using stb_image.h
  • 3D Camera system (FPS-style)
  • Mesh abstraction with VAO/VBO support
  • Framebuffer support (offscreen rendering)
  • Input handling (keyboard + mouse)
  • Shader compilation & linking with GLSL file loading
  • Projection & View matrix utilities via cglm

Requirements

  • C89/C99/C11
  • OpenGL 3.3+
  • GLFW
  • GLEW
  • stb_image (included as stb_img.h)
  • [Deprecated] LAmath.h (Custom or minimal math library for Vec3f, Mat4f, etc.) : author (gWall)
  • Instead of using LAmath.h , we use cglm now! until we fix "LAmath.h"

important flags when you compile using gcc:
NOTE : -lm : for math library needed for cglm. -lc : links the C standard library.

gcc -o test test.c decl_file.c -lglfw3 -lopengl32 -lGLEW32 -lm -lc

About

me learning opengl with c :p

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published