Game Development Community

SrcRegion.set()?

by Kirby Webber · in Torque Game Engine · 11/22/2005 (1:21 pm) · 2 replies

There are numerous resources here in the GG repository that utilize code very much like the following statement:

srcRegion.set( 0, texture->bitmapHeight - newHeight, texture->bitmapWidth, newHeight );

Near as I can tell, srcRegion is simply a variable, but the set statement appears to be a method.

I have searched extensively for this method in the source code so I can better understand what arguments are expected and what the output is supposed to be, but I can't find anything.

Can anyone tell me where this method is defined, or what specifically is being referenced?

Thanks in advance.

#1
11/22/2005 (2:04 pm)
SrcRegion is an instance of class RectI. Look in math/mRect.h for the definition of the RectI class.
#2
11/22/2005 (2:45 pm)
Ahhhh. Thank you SO much Scott. =)