Colobot
Public Attributes | List of all members
Gfx::ModelTriangle Struct Reference

A single triangle in mesh as saved in model file. More...

#include <src/graphics/model/model_triangle.h>

Inheritance diagram for Gfx::ModelTriangle:
Inheritance graph
[legend]

Public Attributes

VertexTex2 p1
 1st vertex More...
 
VertexTex2 p2
 2nd vertex More...
 
VertexTex2 p3
 3rd vertex More...
 
Color diffuse
 Diffuse color. More...
 
Color ambient
 Ambient color. More...
 
Color specular
 Specular color. More...
 
std::string tex1Name
 Name of 1st texture. More...
 
std::string tex2Name
 Name of 2nd texture. More...
 
bool variableTex2 = false
 If true, 2nd texture will be taken from current engine setting. More...
 
bool doubleSided = false
 Whether to render as double-sided surface. More...
 
ModelTransparentMode transparentMode = ModelTransparentMode::None
 How to deal with texture transparency. More...
 
ModelSpecialMark specialMark = ModelSpecialMark::None
 Special marking. More...
 

Detailed Description

A single triangle in mesh as saved in model file.

Member Data Documentation

§ p1

VertexTex2 Gfx::ModelTriangle::p1

1st vertex

§ p2

VertexTex2 Gfx::ModelTriangle::p2

2nd vertex

§ p3

VertexTex2 Gfx::ModelTriangle::p3

3rd vertex

§ diffuse

Color Gfx::ModelTriangle::diffuse

Diffuse color.

§ ambient

Color Gfx::ModelTriangle::ambient

Ambient color.

§ specular

Color Gfx::ModelTriangle::specular

Specular color.

§ tex1Name

std::string Gfx::ModelTriangle::tex1Name

Name of 1st texture.

§ tex2Name

std::string Gfx::ModelTriangle::tex2Name

Name of 2nd texture.

§ variableTex2

bool Gfx::ModelTriangle::variableTex2 = false

If true, 2nd texture will be taken from current engine setting.

§ doubleSided

bool Gfx::ModelTriangle::doubleSided = false

Whether to render as double-sided surface.

§ transparentMode

ModelTransparentMode Gfx::ModelTriangle::transparentMode = ModelTransparentMode::None

How to deal with texture transparency.

§ specialMark

ModelSpecialMark Gfx::ModelTriangle::specialMark = ModelSpecialMark::None

Special marking.


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