add some typedefs

This commit is contained in:
Eduardo Bart
2011-08-28 13:31:01 -03:00
parent e87297c1b5
commit 05edcc218d
8 changed files with 20 additions and 14 deletions

View File

@@ -49,7 +49,7 @@ public:
void setOnLog(const OnLogCallback& onLog) { m_onLog = onLog; }
private:
std::vector<LogMessage> m_logMessages;
std::list<LogMessage> m_logMessages;
OnLogCallback m_onLog;
bool m_terminated;
};

View File

@@ -68,7 +68,7 @@ uint Texture::internalLoadGLTexture(uchar *pixels, int channels, int width, int
glGenTextures(1, &id);
glBindTexture(GL_TEXTURE_2D, id);
std::vector<uchar> tmp;
std::vector<uint8> tmp;
// old opengl drivers only accept power of two dimensions
if(!g_graphics.isExtensionSupported("GL_ARB_texture_non_power_of_two") && pixels) {

View File

@@ -41,18 +41,20 @@ private:
std::string m_hookedWidgetId;
};
typedef std::vector<UIAnchor> UIAnchorList;
class UIAnchorGroup
{
public:
UIAnchorGroup() : m_updated(true) { }
void addAnchor(const UIAnchor& anchor);
const std::vector<UIAnchor>& getAnchors() const { return m_anchors; }
const UIAnchorList& getAnchors() const { return m_anchors; }
bool isUpdated() const { return m_updated; }
void setUpdated(bool updated) { m_updated = updated; }
private:
std::vector<UIAnchor> m_anchors;
UIAnchorList m_anchors;
bool m_updated;
};