Cafu Engine
CafuModelT::GuiFixtureT Struct Reference

This struct defines how and where a GUI can be fixed to the model. More...

#include "Model_cmdl.hpp"

Classes

struct  PointT
 

Public Attributes

std::string Name
 
PointT Points [3]
 
float Trans [2]
 
float Scale [2]
 

Detailed Description

This struct defines how and where a GUI can be fixed to the model.

The GUI rectangle is defined by three points: the origin, the x-axis endpoint, and the y-axis endpoint, numbered 0, 1 and 2. Each point is represented by an arbitrary vertex of one of meshes in the model. The whole GUI rectangle can be translated and scaled, in order to compensate for cases where the mesh vertices do not exactly match the desired rectangle dimensions. More than one GUI can be fixed to a model, and if the referenced mesh vertices are animated, the GUI rectangle is animated, too.


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