How to use HasAtlas?

Home / Forums / Marmalade Archive / IwResManager / How to use HasAtlas?
2 replies [Last post]
by: Papirosnik
Status: Offline
Joined: 2011-04-14

I see in CIwResGroup some member functions.

bool HasAtlas () const
bool IsAtlasReady () const
bool IsMountable () const
bool IsOptimised () const
bool IsResolved () const

Where can I find their description?
For what they are needed?

by: Chris D
Status: Offline
Joined: 2009-11-01
Papirosnik, These functions

Papirosnik,
These functions basically return to you, which flags are set for a given resource group.

They have no documentation save here :)

However their implementation can be found in C:\Marmalade\SDKNr\modules\iwresmanager\h\IwResGroup.h

//Does this group have an atlas
inline bool HasAtlas() const { return (ATLAS_F & m_Flags) != 0;}

//Is Atlas ready for upload?
inline bool IsAtlasReady() const { return (ATLAS_READY_F & m_Flags) !=0;}

inline bool IsMountable() const { return (m_Flags & MOUNTABLE_F) != 0; }

inline bool IsOptimised() const { return (m_Flags & OPTIMISED_F) != 0; }

inline bool IsResolved() const { return (m_Flags & RESOLVED_F) != 0; }

I have opened a ticket and we will document these functions in the future.

Thx,

Chris

by: Papirosnik
Status: Offline
Joined: 2011-04-14
Thank you, Chris... But I

Thank you, Chris...
But I probably missed something.
What kind of atlases are you speaking about?

Currently, I need only 2D images in my atlas (for tiles, my own gui and so on).
So far, I did the texture atlases for myself (TexturePacker helped me) and loaded the resulting atlas structure via ITXParser.

Maybe the Marmalade SDK is able yet to do something to help me?
Is there any opportunity for handling texture atlases (reveal count of sprites, get position and size of every sprite, draw alone sprite by its number or its name...)?

Either I did everything right?

Latest Posts

Latest Comments

Top Contributors

  • amanda
  • riaan
  • alexand3
  • alexand4
  • alexand7
  • alexand889
  • alexand12191
  • remote9991
  • remote9992
  • test