small & reasonably fast declarative style gles3.1+/gl4.3+ renderer inspired by bgfx
Small OpenGL ES3.1+ renderer inspired by BGFX. Currently master does not work on GLES2, use gles2
branch instead. This should be fixed in the future.
gles2
branch)Anyone sick of remembering when you need barriers, implementing a state tracker for the 50th time, integrating bigger deps than your entire codebase or who just wants something less of a pain to use than OpenGL is.
BGFX is excellent, but we have different priorities and scope.
tinyfx.c
in your buildtinyfx.h
(and tinyfx.hpp
if you use the C++ API) to your include paths#include <tinyfx.h>
or #include <tinyfx.hpp>
and start using tfx after creating an OpenGL context (GLFW and SDL are good for this!). Remember to call tfx_set_platform_data
with your target GL version first!Hello Triangle (examples/01-triangle.c
)
Sky + Camera (examples/02-sky.c
)
Water