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 Vertex color.
materialIdx Material index.
texCoordNum The number of texture coordinates.
padding (Not used.)
blockHeader Header.(Inherited from Pane.
flag A flag. (lyt::PaneFlag)(Inherited from Pane.
basePosition Base position. (lyt::HorizontalPosition * HORIZONTALPOSITION_MAX + lyt::VerticalPosition)。(Inherited from Pane.
alpha Alpha value.(Inherited from Pane.
name Pane name.(Inherited from Pane.
userData User data.(Inherited from Pane.
translate Translation value.(Inherited from Pane.
rotate Rotation value.(Inherited from Pane.
scale The scale value.(Inherited from Pane.
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