Both sides previous revision Previous revision | Next revision Both sides next revision | ||
hpl3:game:gui [2013/11/04 09:53] thomas [Assets] |
hpl3:game:gui [2013/11/04 09:54] thomas [Assets] |
||
---|---|---|---|
Line 137: | Line 137: | ||
cImGuiGfx flowerGfx("flower.tga", eGuiMaterial_Additive, eImGuiGfx_ImageAnimated); | cImGuiGfx flowerGfx("flower.tga", eGuiMaterial_Additive, eImGuiGfx_ImageAnimated); | ||
</code> | </code> | ||
- | When loading an animation, an extension is required and the engine will load all the files named like "flower00.tga", "flower01.tga", etc for as long as it can find file names. These images will then be looped around in an animation loop. In order to control the animation speed by setting the member variable ''mfAnimationTime'' like this: | + | When loading an animation, an extension is required and the engine will load all the files named like "flower00.tga", "flower01.tga", etc for as long as it can find file names. These images will then be looped around in an animation loop. Control the animation speed by setting the member variable ''mfAnimationTime'' like this: |
<code c++> | <code c++> | ||
cImGuiGfx flowerGfx("flower.tga", eImGuiGfx_ImageAnimated); | cImGuiGfx flowerGfx("flower.tga", eImGuiGfx_ImageAnimated); |