Silly vertex rendering system for interfacing with lua, used on project "town"
C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
GL3
.gitignore
README.md
gl3w.c
gl3w.h
lauxlib.h
lua.h
lua51.lib
luaconf.h
pvx.c
pvx.sln
pvx.suo
pvx.v11.suo
pvx.v12.suo
pvx.vcxproj
pvx.vcxproj.filters
pvx.vcxproj.user

README.md

pvx

This library can be used to draw simple, colored shapes from lua. It is a minimalistic C lib. It was made for my game "KOFFERT", which is available here: https://github.com/karl-zylinski/town

You load it like so: package.loadlib("pvx.dll", "pvx_load")()

This injects these global functions into your lua environment, which you can then use to draw graphics and process simple input:

pvx_deinit
pvx_process_events
pvx_is_window_open
pvx_add_shape
pvx_draw_shape
pvx_clear
pvx_flip
pvx_key_held
pvx_move_view
pvx_view_pos
pvx_mouse_pos
pvx_window_size
pvx_left_mouse_held
pvx_right_mouse_held```