nw::lyt::res::Picture Structure

Syntax

struct Picture : public nw::lyt::res::Pane
{
   Color vtxCols[VERTEXCOLOR_MAX];
   ut::ResU16 materialIdx;
   ut::ResU8 texCoordNum;
   ut::ResU8 padding[1];
   ut::BinaryBlockHeader blockHeader;
   ut::ResU8 flag;
   ut::ResU8 basePosition;
   ut::ResU8 alpha;
   char name[ResourceNameStrMax];
   char userData[UserDataStrMax];
   Vec3 translate;
   Vec3 rotate;
   Vec2 scale;
   Size size;
};

Description

Data block for defining a picture pane.

res::DATABLOCKKIND_PICTURE is specified for kind in blockHeader.

The following data structure follows this structure.

res::Vec2 texCoords[texCoordNum][VERTEX_MAX];

Member Variables

vtxCols Color Vertex color.
materialIdx ut::ResU16 Material index.
texCoordNum ut::ResU8 The number of texture coordinates.
padding ut::ResU8 (Not used.)
blockHeader ut::BinaryBlockHeader Header.(Inherited from Pane.)
flag ut::ResU8 A flag. (lyt::PaneFlag)(Inherited from Pane.)
basePosition ut::ResU8 Base position. (lyt::HorizontalPosition * HORIZONTALPOSITION_MAX + lyt::VerticalPosition)。(Inherited from Pane.)
alpha ut::ResU8 Alpha value.(Inherited from Pane.)
name char Pane name.(Inherited from Pane.)
userData char User data.(Inherited from Pane.)
translate Vec3 Translation value.(Inherited from Pane.)
rotate Vec3 Rotation value.(Inherited from Pane.)
scale Vec2 The scale value.(Inherited from Pane.)
size Size Size.(Inherited from Pane.)

Inheritance Hierarchy

nw::lyt::res::Pane
  nw::lyt::res::Picture

See Also

Lyt
PaneBegin

Revision History

2010/01/26
Initial version.

CONFIDENTIAL