UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
opengl_utils.hpp File Reference
#include <GL/glew.h>
#include <SDL2/SDL.h>
#include <mutex>
#include <memory>
#include <vector>
#include <cassert>
#include "types.h"
Include dependency graph for opengl_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FlatVideoScene
 
class  Frame_convertor
 
class  Framebuffer
 
class  FrameUploader
 
class  GlBuffer
 
class  GlProgram
 
class  Model
 
class  Texture
 
class  TripleBufferTexture
 

Functions

bool check_gl_extension_present (const char *ext)
 

Detailed Description

Author
Martin Piatka piatk.nosp@m.a@ce.nosp@m.snet..nosp@m.cz

Definition in file opengl_utils.hpp.

Function Documentation

◆ check_gl_extension_present()

bool check_gl_extension_present ( const char * ext)

Definition at line 91 of file opengl_utils.cpp.

91 {
92 int count = 0;
93 glGetIntegerv(GL_NUM_EXTENSIONS, &count);
94
95 for(int i = 0; i < count; i++){
96 const char *item = (const char *) glGetStringi(GL_EXTENSIONS, i);
97 if(strcmp(item, ext) == 0)
98 return true;
99 }
100
101 return false;
102}
int count
Definition hd-rum.c:44
Definition hd-rum.c:27

References count.