Utility

Description

Various utility methods and types used by the engine layer.

Classes

struct  DrawHelper::ShapeMeshData
 Container for mesh of a specific type output by the DrawHelper. More...
 
class  DrawHelper
 Helper class for immediate drawing of common geometric shapes. More...
 
class  HEString
 Helper class used for constructing HStrings that references the engine string table. More...
 
struct  RectOffset
 Rectangle represented in the form of offsets from some parent rectangle. More...
 
class  ShapeMeshes2D
 Helper class for easily creating common 2D shapes. More...
 
class  ShapeMeshes3D
 Helper class for easily creating common 3D shapes. More...
 

Enumerations

enum  CursorType {
  Arrow, ArrowDrag, ArrowLeftRight, Wait,
  IBeam, SizeNESW, SizeNS, SizeNWSE,
  SizeWE, Deny, Count
}
 Available cursor types. More...
 
enum  TextureScaleMode { StretchToFit, ScaleToFit, CropToFit, RepeatToFit }
 Type of scaling modes for GUI images. More...
 
enum  GUIMeshType { Triangle, Line }
 Types of GUI meshes that can be output by GUI elements. More...
 

Enumeration Type Documentation

enum CursorType
strong

Available cursor types.

enum GUIMeshType
strong

Types of GUI meshes that can be output by GUI elements.

Enumerator
Triangle 

Mesh containing a set of vertices as 2D position followed by 2D UV coordinates.

Line 

Mesh containing a set of vertices as 2D position followed by vertex indices.

enum TextureScaleMode
strong

Type of scaling modes for GUI images.

Enumerator
StretchToFit 

Image will stretch non-uniformly in all dimensions in order to cover the assigned area fully.

ScaleToFit 

Image will scale uniformly until one dimension is aligned with the assigned area.

Remaining dimension might have empty space.

CropToFit 

Image will scale uniformly until both dimensions are larger or aligned with the assigned area.

Remaining dimension might be cropped.

RepeatToFit 

Image will keep its original size, but will repeat in order to fill the assigned area.