Macros | Functions | Variables
offscreen.c File Reference
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "linmath.h"
#include <stdlib.h>
#include <stdio.h>
#include <stb_image_write.h>
Include dependency graph for offscreen.c:

Go to the source code of this file.

Macros

#define STB_IMAGE_WRITE_IMPLEMENTATION
 

Functions

static void error_callback (int error, const char *description)
 
int main (void)
 

Variables

static const char * fragment_shader_text
 
static const char * vertex_shader_text
 
struct {
   float   b
 
   float   g
 
   float   r
 
   float   x
 
   float   y
 
vertices [3]
 

Macro Definition Documentation

#define STB_IMAGE_WRITE_IMPLEMENTATION

Definition at line 39 of file offscreen.c.

Function Documentation

static void error_callback ( int  error,
const char *  description 
)
static

Definition at line 73 of file offscreen.c.

int main ( void  )

Definition at line 78 of file offscreen.c.

Variable Documentation

float b

Definition at line 45 of file offscreen.c.

const char* fragment_shader_text
static
Initial value:
=
"#version 110\n"
"varying vec3 color;\n"
"void main()\n"
"{\n"
" gl_FragColor = vec4(color, 1.0);\n"
"}\n"

Definition at line 65 of file offscreen.c.

float g

Definition at line 45 of file offscreen.c.

float r

Definition at line 45 of file offscreen.c.

const char* vertex_shader_text
static
Initial value:
=
"#version 110\n"
"uniform mat4 MVP;\n"
"attribute vec3 vCol;\n"
"attribute vec2 vPos;\n"
"varying vec3 color;\n"
"void main()\n"
"{\n"
" gl_Position = MVP * vec4(vPos, 0.0, 1.0);\n"
" color = vCol;\n"
"}\n"

Definition at line 53 of file offscreen.c.

const { ... } vertices[3]
Initial value:
=
{
{ -0.6f, -0.4f, 1.f, 0.f, 0.f },
{ 0.6f, -0.4f, 0.f, 1.f, 0.f },
{ 0.f, 0.6f, 0.f, 0.f, 1.f }
}
float x

Definition at line 44 of file offscreen.c.

float y

Definition at line 44 of file offscreen.c.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:27