mirror of
https://github.com/edubart/otclient.git
synced 2025-12-02 16:06:51 +01:00
add some typedefs
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user