hgeAnimation Constructors

To create and initalize a hgeAnimation object you may use one of these constructors:

hgeAnimation(
  HTEXTURE tex,
  int nframes,
  float FPS,
  float x,
  float y,
  float w,
  float h
);

hgeAnimation(
  const hgeAnimation &anim
);

Parameters

tex
Handle of the texture holding animation frames.
nframes
Number of animation frames.
FPS
Animation playback speed in frames per second.
x
Texture x-coordinate of the first animation frame in texels.
y
Texture y-coordinate of the first animation frame in texels.
w
Animation frame width.
h
Animation frame height.

Remarks

The animation frames are expected to be placed in texture consecutively left-to-right, top-to-bottom. If there is no space for the next frame to the right from the current one, the next frame is expected to be found one row lower, starting at x-coordinate = 0.

Requirements

Header: hgeanim.h
Import library: hgehelp.lib