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

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

#include <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

VertexTex2 Gfx::ModelTriangle::p1

1st vertex

VertexTex2 Gfx::ModelTriangle::p2

2nd vertex

VertexTex2 Gfx::ModelTriangle::p3

3rd vertex

Color Gfx::ModelTriangle::diffuse

Diffuse color.

Color Gfx::ModelTriangle::ambient

Ambient color.

Color Gfx::ModelTriangle::specular

Specular color.

std::string Gfx::ModelTriangle::tex1Name

Name of 1st texture.

std::string Gfx::ModelTriangle::tex2Name

Name of 2nd texture.

bool Gfx::ModelTriangle::variableTex2 = false

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

bool Gfx::ModelTriangle::doubleSided = false

Whether to render as double-sided surface.

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

How to deal with texture transparency.

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

Special marking.


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