mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
replace specific names for a universal getRegistrations
This commit is contained in:
parent
3aac9af35e
commit
d4e9275240
7 changed files with 28 additions and 28 deletions
|
|
@ -407,9 +407,9 @@ void ColladaShapeLoader::computeBounds(Box3F& bounds)
|
|||
String findTextureExtension(const Torque::Path &texPath)
|
||||
{
|
||||
Torque::Path path(texPath);
|
||||
for(S32 i = 0;i < GBitmap::getBitmapRegistrations().size();++i)
|
||||
for(S32 i = 0;i < GBitmap::getRegistrations().size();++i)
|
||||
{
|
||||
GBitmap::Registration ® = GBitmap::getBitmapRegistrations()[i];
|
||||
GBitmap::Registration ® = GBitmap::getRegistrations()[i];
|
||||
for(S32 j = 0;j < reg.extensions.size();++j)
|
||||
{
|
||||
path.setExtension(reg.extensions[j]);
|
||||
|
|
|
|||
|
|
@ -1302,9 +1302,9 @@ String TSShapeLoader::getFormatExtensions()
|
|||
{
|
||||
// "*.dsq TAB *.dae TAB
|
||||
StringBuilder output;
|
||||
for(U32 n = 0; n < TSShape::getShapeRegistrations().size(); ++n)
|
||||
for(U32 n = 0; n < TSShape::getRegistrations().size(); ++n)
|
||||
{
|
||||
TSShape::ShapeRegistration reg = TSShape::getShapeRegistrations()[n];
|
||||
TSShape::ShapeRegistration reg = TSShape::getRegistrations()[n];
|
||||
for (U32 i = 0; i < reg.extensions.size(); i++)
|
||||
{
|
||||
TSShape::ShapeFormat format = reg.extensions[i];
|
||||
|
|
@ -1320,9 +1320,9 @@ String TSShapeLoader::getFormatFilters()
|
|||
{
|
||||
// "DSQ Files|*.dsq|COLLADA Files|*.dae|"
|
||||
StringBuilder output;
|
||||
for (U32 n = 0; n < TSShape::getShapeRegistrations().size(); ++n)
|
||||
for (U32 n = 0; n < TSShape::getRegistrations().size(); ++n)
|
||||
{
|
||||
TSShape::ShapeRegistration reg = TSShape::getShapeRegistrations()[n];
|
||||
TSShape::ShapeRegistration reg = TSShape::getRegistrations()[n];
|
||||
for (U32 i = 0; i < reg.extensions.size(); i++)
|
||||
{
|
||||
TSShape::ShapeFormat format = reg.extensions[i];
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
// Vector<TSShape::ShapeRegistration> TSShape::sShapeRegistrations(__FILE__, __LINE__);
|
||||
|
||||
Vector<TSShape::ShapeRegistration>& TSShape::getShapeRegistrations()
|
||||
Vector<TSShape::ShapeRegistration>& TSShape::getRegistrations()
|
||||
{
|
||||
static Vector<TSShape::ShapeRegistration>* regs =
|
||||
new Vector<TSShape::ShapeRegistration>(__FILE__, __LINE__);
|
||||
|
|
@ -50,16 +50,16 @@ Vector<TSShape::ShapeRegistration>& TSShape::getShapeRegistrations()
|
|||
|
||||
void TSShape::sRegisterFormat(const ShapeRegistration& reg)
|
||||
{
|
||||
U32 insert = TSShape::getShapeRegistrations().size();
|
||||
TSShape::getShapeRegistrations().insert(insert, reg);
|
||||
U32 insert = TSShape::getRegistrations().size();
|
||||
TSShape::getRegistrations().insert(insert, reg);
|
||||
}
|
||||
|
||||
|
||||
const TSShape::ShapeRegistration* TSShape::sFindShapeRegInfo(const String& extension, bool exporting)
|
||||
{
|
||||
for (U32 i = 0; i < TSShape::getShapeRegistrations().size(); i++)
|
||||
for (U32 i = 0; i < TSShape::getRegistrations().size(); i++)
|
||||
{
|
||||
const TSShape::ShapeRegistration& reg = TSShape::getShapeRegistrations()[i];
|
||||
const TSShape::ShapeRegistration& reg = TSShape::getRegistrations()[i];
|
||||
const Vector<ShapeFormat>& extensions = exporting ? reg.export_extensions : reg.extensions;
|
||||
|
||||
for (U32 j = 0; j < extensions.size(); j++)
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ public:
|
|||
|
||||
static void sRegisterFormat(const ShapeRegistration& reg);
|
||||
static const ShapeRegistration* sFindShapeRegInfo(const String& extension, bool exporting = false);
|
||||
static Vector<ShapeRegistration>& getShapeRegistrations();
|
||||
static Vector<ShapeRegistration>& getRegistrations();
|
||||
|
||||
/// Nodes hold the transforms in the shape's tree. They are the bones of the skeleton.
|
||||
struct Node
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue