TINYGL: Cleanup function arguments

This commit is contained in:
Paweł Kołodziejski 2021-12-27 13:22:38 +01:00
parent 9accbf1c30
commit 6e6696271e
No known key found for this signature in database
GPG key ID: 0BDADC9E74440FF7
7 changed files with 176 additions and 172 deletions

View file

@ -29,7 +29,7 @@
namespace TinyGL {
int tglRenderMode(int mode) {
TGLint tglRenderMode(TGLenum mode) {
GLContext *c = gl_get_context();
int result = 0;
@ -67,12 +67,12 @@ int tglRenderMode(int mode) {
return result;
}
void tglSelectBuffer(int size, uint *buf) {
void tglSelectBuffer(TGLsizei size, TGLuint *buffer) {
GLContext *c = gl_get_context();
assert(c->render_mode != TGL_SELECT);
c->select_buffer = buf;
c->select_buffer = buffer;
c->select_size = size;
}