atomes 1.3.1
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
ogl_shading.h File Reference

Variable declarations related to GLSL programs
Data structure declarations related to GLSL programs. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  object_3d
struct  glsl_program

Macros

#define POLY_BUFF_SIZE   10
#define LINE_BUFF_SIZE   7
#define CYLI_BUFF_SIZE   13
#define CAPS_BUFF_SIZE   12
#define ATOM_BUFF_SIZE   8
#define CHAR_BUFF_SIZE   4

Typedefs

typedef struct object_3d object_3d
typedef struct glsl_program glsl_program

Enumerations

enum  glsl_styles {
  GLSL_POINTS = 0 , GLSL_SPHERES = 1 , GLSL_LINES = 2 , GLSL_CYLINDERS = 3 ,
  GLSL_CAPS = 4 , GLSL_POLYEDRA = 5 , GLSL_STRING = 6 , GLSL_LIGHT = 7 ,
  GLSL_BACK = 8
}

Functions

void allocate_instances (object_3d *object)
 allocate the instances buffer of a 3D object

Variables

const GLchar * point_vertex
const GLchar * point_color
const GLchar * line_vertex
const GLchar * line_color
const GLchar * line_stipple
const GLchar * line_stipple_color
const GLchar * angle_vertex
const GLchar * angle_stipple
const GLchar * angle_color
const GLchar * angstrom_vertex
const GLchar * degree_vertex
const GLchar * full_vertex
const GLchar * full_color
const GLchar * full_color_ray
const GLchar * sphere_vertex
const GLchar * sphere_vertex_ray
const GLchar * cylinder_vertex
const GLchar * cylinder_vertex_ray
const GLchar * cone_vertex
const GLchar * cone_vertex_ray
const GLchar * cap_vertex
const GLchar * cap_vertex_ray
const GLchar * string_vertex
const GLchar * string_color
const GLchar * string_color_2d
const GLchar * background_vertex
const GLchar * background_linear
const GLchar * background_circular

Detailed Description

Variable declarations related to GLSL programs
Data structure declarations related to GLSL programs.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file ogl_shading.h.

Macro Definition Documentation

◆ ATOM_BUFF_SIZE

#define ATOM_BUFF_SIZE   8

Definition at line 53 of file ogl_shading.h.

◆ CAPS_BUFF_SIZE

#define CAPS_BUFF_SIZE   12

Definition at line 52 of file ogl_shading.h.

◆ CHAR_BUFF_SIZE

#define CHAR_BUFF_SIZE   4

Definition at line 54 of file ogl_shading.h.

◆ CYLI_BUFF_SIZE

#define CYLI_BUFF_SIZE   13

Definition at line 51 of file ogl_shading.h.

◆ LINE_BUFF_SIZE

#define LINE_BUFF_SIZE   7

Definition at line 50 of file ogl_shading.h.

◆ POLY_BUFF_SIZE

#define POLY_BUFF_SIZE   10

Definition at line 49 of file ogl_shading.h.

Typedef Documentation

◆ glsl_program

typedef struct glsl_program glsl_program

Definition at line 117 of file ogl_shading.h.

◆ object_3d

typedef struct object_3d object_3d

Definition at line 97 of file ogl_shading.h.

Enumeration Type Documentation

◆ glsl_styles

Enumerator
GLSL_POINTS 

0

GLSL_SPHERES 

1

GLSL_LINES 

2

GLSL_CYLINDERS 

3

GLSL_CAPS 

4

GLSL_POLYEDRA 

5

GLSL_STRING 

6

GLSL_LIGHT 

7

GLSL_BACK 

8

Definition at line 37 of file ogl_shading.h.

Function Documentation

◆ allocate_instances()

void allocate_instances ( object_3d * object)
extern

allocate the instances buffer of a 3D object

Parameters
objectthe target object_3d

Definition at line 151 of file ogl_shading.c.

Variable Documentation

◆ angle_color

const GLchar* angle_color
extern

Definition at line 330 of file ogl_shaders.c.

◆ angle_stipple

const GLchar* angle_stipple
extern

Definition at line 141 of file ogl_shaders.c.

◆ angle_vertex

const GLchar* angle_vertex
extern

Definition at line 128 of file ogl_shaders.c.

◆ angstrom_vertex

const GLchar* angstrom_vertex
extern

Definition at line 1834 of file ogl_shaders.c.

◆ background_circular

const GLchar* background_circular
extern

Definition at line 2200 of file ogl_shaders.c.

◆ background_linear

const GLchar* background_linear
extern

Definition at line 2164 of file ogl_shaders.c.

◆ background_vertex

const GLchar* background_vertex
extern

Definition at line 2153 of file ogl_shaders.c.

◆ cap_vertex

const GLchar* cap_vertex
extern

Definition at line 479 of file ogl_shaders.c.

◆ cap_vertex_ray

const GLchar* cap_vertex_ray
extern

Definition at line 1204 of file ogl_shaders.c.

◆ cone_vertex

const GLchar* cone_vertex
extern

Definition at line 437 of file ogl_shaders.c.

◆ cone_vertex_ray

const GLchar* cone_vertex_ray
extern

Definition at line 1122 of file ogl_shaders.c.

◆ cylinder_vertex

const GLchar* cylinder_vertex
extern

Definition at line 397 of file ogl_shaders.c.

◆ cylinder_vertex_ray

const GLchar* cylinder_vertex_ray
extern

Definition at line 1034 of file ogl_shaders.c.

◆ degree_vertex

const GLchar* degree_vertex
extern

Definition at line 1957 of file ogl_shaders.c.

◆ full_color

const GLchar* full_color
extern

Definition at line 636 of file ogl_shaders.c.

◆ full_color_ray

const GLchar* full_color_ray
extern

Definition at line 1264 of file ogl_shaders.c.

◆ full_vertex

const GLchar* full_vertex
extern

Definition at line 346 of file ogl_shaders.c.

◆ line_color

const GLchar* line_color
extern

Definition at line 93 of file ogl_shaders.c.

◆ line_stipple

const GLchar* line_stipple
extern

Definition at line 102 of file ogl_shaders.c.

◆ line_stipple_color

const GLchar* line_stipple_color
extern

Definition at line 314 of file ogl_shaders.c.

◆ line_vertex

const GLchar* line_vertex
extern

Definition at line 80 of file ogl_shaders.c.

◆ point_color

const GLchar* point_color
extern

Definition at line 66 of file ogl_shaders.c.

◆ point_vertex

const GLchar* point_vertex
extern

Definition at line 50 of file ogl_shaders.c.

◆ sphere_vertex

const GLchar* sphere_vertex
extern

Definition at line 370 of file ogl_shaders.c.

◆ sphere_vertex_ray

const GLchar* sphere_vertex_ray
extern

Definition at line 980 of file ogl_shaders.c.

◆ string_color

const GLchar* string_color
extern

Definition at line 2123 of file ogl_shaders.c.

◆ string_color_2d

const GLchar* string_color_2d
extern

Definition at line 2139 of file ogl_shaders.c.

◆ string_vertex

const GLchar* string_vertex
extern

Definition at line 584 of file ogl_shaders.c.