diff options
author | pommicket <pommicket@gmail.com> | 2025-02-21 15:03:44 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-02-21 15:03:44 -0500 |
commit | a16bc05a060cb703c07203dc6d9998f5a3b5c382 (patch) | |
tree | 2197198c3e2d53c7a9ae72e28648c5363a73c5ff /camera.h | |
parent | 66e0461583b1711b4ebc3a94f1c5f2aed7c0bd81 (diff) |
various cleanup
Diffstat (limited to 'camera.h')
-rw-r--r-- | camera.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -86,11 +86,13 @@ typedef enum { do(UNIFORMMATRIX4FV, UniformMatrix4fv)\ do(DEBUGMESSAGECALLBACK, DebugMessageCallback)\ do(DEBUGMESSAGECONTROL, DebugMessageControl)\ - do(PIXELSTOREI, PixelStorei) + do(PIXELSTOREI, PixelStorei)\ + do(BINDFRAGDATALOCATION, BindFragDataLocation) typedef struct { #define declare_proc(upper, lower) PFNGL##upper##PROC lower; gl_for_each_proc(declare_proc) #undef declare_proc + int version_major, version_minor; } GlProcs; static bool hash_eq(Hash h1, Hash h2) { @@ -111,7 +113,10 @@ PictureFormat camera_picture_format(Camera *camera); bool camera_save_jpg(Camera *camera, const char *path, int quality); bool camera_save_png(Camera *camera, const char *path); bool camera_next_frame(Camera *camera); -void camera_update_gl_textures(Camera *camera, const GLuint textures[3]); +/// Updates the texture data for the given textures to the current picture. +/// +/// Returns the number of textures which are actually needed. +int camera_update_gl_textures(Camera *camera, const GLuint textures[3]); const char *camera_name(Camera *camera); const char *camera_devnode(Camera *camera); uint32_t camera_pixel_format(Camera *camera); |