mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fixed some misc. compiler warnings.
This commit is contained in:
@@ -75,6 +75,8 @@ int w_getSize(lua_State *L);
|
||||
int w_setSymlinksEnabled(lua_State *L);
|
||||
int w_areSymlinksEnabled(lua_State *L);
|
||||
int w_isSymlink(lua_State *L);
|
||||
int w_getRequirePath(lua_State *L);
|
||||
int w_setRequirePath(lua_State *L);
|
||||
int loader(lua_State *L);
|
||||
int extloader(lua_State *L);
|
||||
extern "C" LOVE_EXPORT int luaopen_love_filesystem(lua_State *L);
|
||||
|
||||
@@ -53,7 +53,6 @@ public:
|
||||
* @param size The size of the GLBuffer in bytes.
|
||||
* @param target The target GLBuffer object, e.g. GL_ARRAY_BUFFER.
|
||||
* @param usage Usage hint, e.g. GL_DYNAMIC_DRAW.
|
||||
* @param backing Determines what guarantees are placed on the data.
|
||||
*/
|
||||
GLBuffer(size_t size, const void *data, GLenum target, GLenum usage);
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
* a single block of memory containing all the images.
|
||||
*
|
||||
* @param[in] filedata The data to parse.
|
||||
* @param[out] image The list of sub-images generated. Byte data is a pointer
|
||||
* @param[out] images The list of sub-images generated. Byte data is a pointer
|
||||
* to the returned data.
|
||||
* @param[out] dataSize The total size in bytes of the returned data.
|
||||
* @param[out] format The format of the Compressed Data.
|
||||
|
||||
@@ -35,7 +35,7 @@ int w_hasKeyRepeat(lua_State *L);
|
||||
int w_isDown(lua_State *L);
|
||||
int w_isScancodeDown(lua_State *L);
|
||||
int w_getKeyFromScancode(lua_State *L);
|
||||
int w_getScancodeFromkey(lua_State *L);
|
||||
int w_getScancodeFromKey(lua_State *L);
|
||||
int w_setTextInput(lua_State *L);
|
||||
int w_hasTextInput(lua_State *L);
|
||||
int w_hasScreenKeyboard(lua_State *L);
|
||||
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
*
|
||||
* @param[in] data The input (compressed) data.
|
||||
* @param[in] dataSize The size in bytes of the compressed data.
|
||||
* @param[inout] decompressedSize On input, the size in bytes of the
|
||||
* @param[in,out] decompressedSize On input, the size in bytes of the
|
||||
* original uncompressed data, or 0 if unknown. On return, the
|
||||
* size in bytes of the decompressed data.
|
||||
*
|
||||
|
||||
@@ -191,8 +191,8 @@ public:
|
||||
*
|
||||
* @param[in] format The compression format the data is in.
|
||||
* @param[in] cbytes The compressed data to decompress.
|
||||
* @param[in] compressedSize The size in bytes of the compressed data.
|
||||
* @param[inout] rawsize On input, the size in bytes of the original
|
||||
* @param[in] compressedsize The size in bytes of the compressed data.
|
||||
* @param[in,out] rawsize On input, the size in bytes of the original
|
||||
* uncompressed data, or 0 if unknown. On return, the size in
|
||||
* bytes of the newly decompressed data.
|
||||
* @return The newly decompressed data (allocated with new[]).
|
||||
|
||||
@@ -43,31 +43,31 @@ public:
|
||||
const char *getName() const override;
|
||||
|
||||
Mouse();
|
||||
~Mouse();
|
||||
virtual ~Mouse();
|
||||
|
||||
love::mouse::Cursor *newCursor(love::image::ImageData *data, int hotx, int hoty);
|
||||
love::mouse::Cursor *getSystemCursor(Cursor::SystemCursor cursortype);
|
||||
love::mouse::Cursor *newCursor(love::image::ImageData *data, int hotx, int hoty) override;
|
||||
love::mouse::Cursor *getSystemCursor(Cursor::SystemCursor cursortype) override;
|
||||
|
||||
void setCursor(love::mouse::Cursor *cursor);
|
||||
void setCursor();
|
||||
void setCursor(love::mouse::Cursor *cursor) override;
|
||||
void setCursor() override;
|
||||
|
||||
love::mouse::Cursor *getCursor() const;
|
||||
love::mouse::Cursor *getCursor() const override;
|
||||
|
||||
bool hasCursor() const;
|
||||
bool hasCursor() const override;
|
||||
|
||||
double getX() const;
|
||||
double getY() const;
|
||||
void getPosition(double &x, double &y) const;
|
||||
void setX(double x);
|
||||
void setY(double y);
|
||||
void setPosition(double x, double y);
|
||||
void setVisible(bool visible);
|
||||
bool isDown(const std::vector<int> &buttons) const;
|
||||
bool isVisible() const;
|
||||
void setGrabbed(bool grab);
|
||||
bool isGrabbed() const;
|
||||
bool setRelativeMode(bool relative);
|
||||
bool getRelativeMode() const;
|
||||
double getX() const override;
|
||||
double getY() const override;
|
||||
void getPosition(double &x, double &y) const override;
|
||||
void setX(double x) override;
|
||||
void setY(double y) override;
|
||||
void setPosition(double x, double y) override;
|
||||
void setVisible(bool visible) override;
|
||||
bool isDown(const std::vector<int> &buttons) const override;
|
||||
bool isVisible() const override;
|
||||
void setGrabbed(bool grab) override;
|
||||
bool isGrabbed() const override;
|
||||
bool setRelativeMode(bool relative) override;
|
||||
bool getRelativeMode() const override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user