Game Development Community

Clipping parts of a 2D image and rendering to canvas

by Frederic66 · in Torque Game Engine · 04/27/2004 (1:03 pm) · 2 replies

Clipping parts of a 2D image and rendering to canvas


*Does Torque have routines for the following :
Clipping parts of a 2D image and rendering it to the canvas?

I have a large sheet of 2D figures. Each sheet has a number of 2D images that
represent various stages of an animation cycle. I want to
load the whole 2D page into memory and later clip parts of it using Torque calls and render
them to the canvas.

Does Torque have such a function?

#1
04/27/2004 (1:11 pm)
I believe the precipitation does this.. 16 images in a single png file then the engine chooses by random which one to use.
#2
04/27/2004 (1:27 pm)
I think some of the arrays and/or fonts do this. You might wanna check that out for reference.