hgeSprite Constructors

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

hgeSprite(
  HTEXTURE tex,
  float x,
  float y,
  float w,
  float h
);

hgeSprite(
  const hgeSprite &sprite
);

Parameters

tex
Handle of the texture, holding the sprite image or 0.
x
Texture x-coordinate of the sprite in texels.
y
Texture y-coordinate of the sprite in texels.
w
Sprite width.
h
Sprite height.

Remarks

If tex = 0, white color is used as texture data.

Requirements

Header: hgesprite.h
Import library: hgehelp.lib