Functions | Variables
icon.c File Reference
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for icon.c:

Go to the source code of this file.

Functions

static void key_callback (GLFWwindow *window, int key, int scancode, int action, int mods)
 
int main (int argc, char **argv)
 
static void set_icon (GLFWwindow *window, int icon_color)
 

Variables

static int cur_icon_color = 0
 
const unsigned char icon_colors [5][4]
 
const char *const logo []
 

Function Documentation

static void key_callback ( GLFWwindow window,
int  key,
int  scancode,
int  action,
int  mods 
)
static

Definition at line 92 of file icon.c.

int main ( int  argc,
char **  argv 
)

Definition at line 112 of file icon.c.

static void set_icon ( GLFWwindow window,
int  icon_color 
)
static

Definition at line 69 of file icon.c.

Variable Documentation

int cur_icon_color = 0
static

Definition at line 67 of file icon.c.

const unsigned char icon_colors[5][4]
Initial value:
=
{
{ 0, 0, 0, 255 },
{ 255, 0, 0, 255 },
{ 0, 255, 0, 255 },
{ 0, 0, 255, 255 },
{ 255, 255, 255, 255 }
}

Definition at line 58 of file icon.c.

const char* const logo[]
Initial value:
=
{
"................",
"................",
"...0000..0......",
"...0.....0......",
"...0.00..0......",
"...0..0..0......",
"...0000..0000...",
"................",
"................",
"...000..0...0...",
"...0....0...0...",
"...000..0.0.0...",
"...0....0.0.0...",
"...0....00000...",
"................",
"................"
}

Definition at line 38 of file icon.c.



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