Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
rs2::texture_2d_shader Class Reference

#include <opengl3.h>

Inheritance diagram for rs2::texture_2d_shader:
Inheritance graph

Public Member Functions

void begin ()
void end ()
void set_opacity (float opacity)
void set_position_and_scale (const float2 &position, const float2 &scale)
 texture_2d_shader ()

Protected Member Functions

 texture_2d_shader (std::unique_ptr< shader_program > shader)

Static Protected Member Functions

static const char * default_vertex_shader ()

Protected Attributes

std::unique_ptr< shader_program_shader

Private Member Functions

void init ()

Private Attributes

uint32_t _opacity_location
uint32_t _position_location
uint32_t _scale_location

Detailed Description

Definition at line 163 of file opengl3.h.

Constructor & Destructor Documentation

texture_2d_shader::texture_2d_shader ( )

Definition at line 269 of file opengl3.cpp.

texture_2d_shader::texture_2d_shader ( std::unique_ptr< shader_program shader)

Definition at line 258 of file opengl3.cpp.

Member Function Documentation

void texture_2d_shader::begin ( )

Definition at line 343 of file opengl3.cpp.

const char * texture_2d_shader::default_vertex_shader ( )

Definition at line 264 of file opengl3.cpp.

void texture_2d_shader::end ( )

Definition at line 344 of file opengl3.cpp.

void texture_2d_shader::init ( )

Definition at line 319 of file opengl3.cpp.

void texture_2d_shader::set_opacity ( float  opacity)

Definition at line 346 of file opengl3.cpp.

void texture_2d_shader::set_position_and_scale ( const float2 position,
const float2 scale 

Definition at line 301 of file opengl3.cpp.

Member Data Documentation

uint32_t rs2::texture_2d_shader::_opacity_location

Definition at line 188 of file opengl3.h.

uint32_t rs2::texture_2d_shader::_position_location

Definition at line 186 of file opengl3.h.

uint32_t rs2::texture_2d_shader::_scale_location

Definition at line 187 of file opengl3.h.

std::unique_ptr<shader_program> rs2::texture_2d_shader::_shader

Definition at line 179 of file opengl3.h.

The documentation for this class was generated from the following files:

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