Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Public Attributes | List of all members
VirtualTexture Class Reference

#include <Roads.h>

Public Member Functions

void Adapt (const FPoint2 &in, FPoint2 &out)
 

Public Attributes

int m_idx
 
FRECT m_rect
 

Detailed Description

A 'virtual' texture is a subset of an another texture; defined by rectangular UV extents that refer to an area of source texels. It is used by the RoadMap classes to pack a number of textures into a single "roadway" texture, but could certainly by extended into a general-purpose class in the future.

One thing to watch out for is that a virtual texture won't necessarily tile (repeat) as expected, since it make have other virtual textures adjacent to it in the source texture.


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