https://github.com/lpg2709/lpglibs
C libs used with OpenGL.
https://github.com/lpg2709/lpglibs
c camera header-only lib opengl shader
Last synced: 3 months ago
JSON representation
C libs used with OpenGL.
- Host: GitHub
- URL: https://github.com/lpg2709/lpglibs
- Owner: lpg2709
- Created: 2020-07-07T23:52:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-08T00:57:56.000Z (over 5 years ago)
- Last Synced: 2025-09-13T08:58:27.099Z (4 months ago)
- Topics: c, camera, header-only, lib, opengl, shader
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lpglibs
Repository for storing libs used with OpenGL.
## Libs
### lpgCamrea.h
Data to store a simple camera, function to control the camera. By default camera is sandbox.
### lpgShaders.h
Load a shader from file, create and compile shaders.
```c
/*! @brief Load shader source from file
* @param [const char *] path - The path of the file
* @return const char * - Content of the file
*/
const char *lpgLoadShaderSource(const char *path);
/*! @brief Create and compile the shader object
* @param [const char *] shaderSourceStr - The shader string
* @param [GLenum] type - Shader type
* @return unsigned int - Shader Id
*/
unsigned int lpgCreateShader(const char *shaderSourceStr, GLenum type);
/*! @brief Create, link and validate the program object
* @param [unsigned int] vertexShader - The vertex shader
* @param [unsigned int] fragmentShader - The fragment shader
* @return unsigned int - Program Id
*/
unsigned int lpgCreateProgram(unsigned int vertexShader, unsigned int fragmentShader);
/*! @brief Delete Shader from memory
* @param [unsigned int] shader - Shader Id
* @return void
*/
void lpgDeleteShader(unsigned int shader);
```
### lpgTextures.h
Create texturs.