Face attributes.
#include <srl_mesh.hpp>
Public Types | |
| enum | DisplayMode : uint16_t { NoMode = CL_Replace , Shadow = CL_Shadow , HalfBright = CL_Half , HalfTransparent = CL_Trans , Mesh = MESHon , ClippingIn = Window_In , ClippingOut = Window_Out , HighSpeedShrink = HSSon } |
| Quad display mode. More... | |
| enum | DisplayOption : uint16_t { NoOption = No_Option , EnableFlatLight = UseLight , EnableDepthShading = UseDepth , EnableClipping = UseClip , EnableGouraud = UseGouraud } |
| Additional quad display options. More... | |
| enum | DisplayType : uint32_t { Polygon = (uint32_t)sprPolygon , PolyLine = (uint32_t)sprPolyLine , Segment = (uint32_t)sprLine , Sprite = (uint32_t)sprNoflip , SpriteHFlip = (uint32_t)sprHflip , SpriteVFlip = (uint32_t)sprVflip , SpriteHVFlip = (uint32_t)sprHVflip } |
| Quad display type. More... | |
| enum | FaceVisibility : uint8_t { SingleSided = 0 , DoubleSided = 1 } |
| Face visibility type. More... | |
| enum | SortMode : uint8_t { BeforeLast = SORT_BFR , Minimum = SORT_MIN , Maximum = SORT_MAX , Center = SORT_CEN } |
| Sorting mode for the face. More... | |
Public Member Functions | |
| Attribute () | |
| Construct a new empty Attribute. | |
| Attribute (const FaceVisibility visibility, const SortMode sort, const uint16_t texture, const uint16_t color, const uint16_t gouraudRamOffset, const CRAM::TextureColorMode colorMode, const DisplayMode mode, const DisplayType type, const DisplayOption option) | |
| Construct a new custom quad attribute. | |
| Attribute (const FaceVisibility visibility, const SortMode sort, const uint16_t texture, uint16_t color, uint16_t gouraud, uint16_t mode, uint32_t type, uint16_t options) | |
| Construct a new custom quad attribute. | |
| const ATTR * | SglConstPtr () const |
| Get pointer to SGL type. | |
| ATTR * | SglPtr () |
| Get pointer to SGL type. | |
Public Attributes | |
| uint16_t | ColorMode |
| Color mode. | |
| uint16_t | Direction |
| Texture inversion and function number. | |
| uint16_t | Display |
| Display mode. | |
| uint16_t | Gouraud |
| Gouraud shading table. | |
| uint8_t | Sort |
| Sort reference position and optional settings. | |
| uint16_t | Texture |
| Texture number. | |
| FaceVisibility | Visibility |
| Indicates whether face is visible at all times or only when its normal vector is pointing towards camera. | |