NDEVR
API Documentation
FragUniformObject

Items to send to the OpenGL Fragmentation shader. More...

Collaboration diagram for FragUniformObject:
[legend]

Public Types

enum  ColorPosition : uint01 { e_kd_frag_pos = 8 , e_ka_frag_pos = 9 , e_ks_frag_pos = 10 , e_kr_frag_pos = 11 }
 Indices for color values within the fragment uniform palette. More...
enum  FloatPosition : uint01 {
  e_min_value_frag_pos = 0 , e_mid_value_frag_pos = 1 , e_max_value_frag_pos = 2 , e_min_value_frag_pos = 0 ,
  e_mid_value_frag_pos = 1 , e_max_value_frag_pos = 2
}
 Indices into the float_values matrix for fragment shader value ranges. More...
enum  FloatPosition : uint01 {
  e_min_value_frag_pos = 0 , e_mid_value_frag_pos = 1 , e_max_value_frag_pos = 2 , e_min_value_frag_pos = 0 ,
  e_mid_value_frag_pos = 1 , e_max_value_frag_pos = 2
}
 Indices for float values within the fragment uniform. More...

Public Member Functions

 FragUniformObject ()
 Default constructor.
 FragUniformObject (const Material &m_material)
 Constructs a FragUniformObject from a Material.
void setMode (Material::TextureCoordMode mat_mode)
 Sets the texture coordinate mode.

Public Attributes

Vector< 3, Vector< 4, fltp04 > > constant_channels
 Constant color channels (ambient, diffuse, specular).
fltp04 fade_distance = 99.9f
 Distance at which objects begin to fade.
Matrix< fltp04float_values
 Matrix of float value ranges for the fragment shader.
Vector< 4, sint04m_grid_lines = Vector<4, sint04>(-1)
 Grid line positions.
Vector< 4, sint04m_grid_lines_desc = Vector<4, sint04>(-1)
 Grid line descriptors.
fltp04 max_distance = 500.0f
 Maximum visible distance.
fltp04 opacity = 1.0f
 Overall material opacity.
Buffer< Vector< 4, fltp04 > > palette_colors
 Color palette for indexed color rendering.
uint04 render_mode = 0U
 The active rendering mode flags.
fltp04 shininess = 1.0f
 Specular shininess exponent.
uint04 texture_coord_mode = 0
 Texture coordinate generation mode.
Vector< 6, uint04textures = Constant<Vector<6, uint04>>::Invalid
 Texture unit indices.

Detailed Description

Items to send to the OpenGL Fragmentation shader.

Information sent to the Fragmentation shader as a uniform object.



Definition at line 59 of file GLESMaterialManager.h.

Member Enumeration Documentation

◆ ColorPosition

Indices for color values within the fragment uniform palette.

Enumerator
e_kd_frag_pos 

Diffuse color position index.

e_ka_frag_pos 

Ambient color position index.

e_ks_frag_pos 

Specular color position index.

e_kr_frag_pos 

Reflective color position index.

Definition at line 68 of file VulkanMaterialManager.h.

◆ FloatPosition [1/2]

Indices into the float_values matrix for fragment shader value ranges.

Enumerator
e_min_value_frag_pos 

Index of the minimum value row.

Minimum palette value position.

e_mid_value_frag_pos 

Index of the midpoint value row.

Midpoint palette value position.

e_max_value_frag_pos 

Index of the maximum value row.

Maximum palette value position.

e_min_value_frag_pos 

Index of the minimum value row.

Minimum palette value position.

e_mid_value_frag_pos 

Index of the midpoint value row.

Midpoint palette value position.

e_max_value_frag_pos 

Index of the maximum value row.

Maximum palette value position.

Definition at line 62 of file GLESMaterialManager.h.

◆ FloatPosition [2/2]

Indices for float values within the fragment uniform.

Enumerator
e_min_value_frag_pos 

Index of the minimum value row.

Minimum palette value position.

e_mid_value_frag_pos 

Index of the midpoint value row.

Midpoint palette value position.

e_max_value_frag_pos 

Index of the maximum value row.

Maximum palette value position.

e_min_value_frag_pos 

Index of the minimum value row.

Minimum palette value position.

e_mid_value_frag_pos 

Index of the midpoint value row.

Midpoint palette value position.

e_max_value_frag_pos 

Index of the maximum value row.

Maximum palette value position.

Definition at line 76 of file VulkanMaterialManager.h.

Constructor & Destructor Documentation

◆ FragUniformObject()

FragUniformObject::FragUniformObject ( const Material & m_material)

Constructs a FragUniformObject from a Material.

Parameters
[in]m_materialThe material to extract fragment uniform values from.

Member Function Documentation

◆ setMode()

void FragUniformObject::setMode ( Material::TextureCoordMode mat_mode)
inline

Sets the texture coordinate mode.

Parameters
[in]mat_modeThe texture coordinate mode to apply.

Definition at line 91 of file GLESMaterialManager.h.

References texture_coord_mode.


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