JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Sprite Member List

This is the complete list of members for Sprite, including all inherited members.

batch(const ShaderProgram *shaderProgram=nullptr) constSprite
contains(jngl::Vec2 point) constDrawable
draw() const overrideSpritevirtual
draw(Mat3 modelview, const ShaderProgram *=nullptr) constSprite
draw(Mat3 modelview, Alpha, const ShaderProgram *=nullptr) const (defined in Sprite)Sprite
draw(Mat3 modelview, Rgba color) constSprite
draw(const ShaderProgram *shaderProgram) constSprite
Drawable() (defined in Drawable)Drawable
Drawable(const Drawable &)=default (defined in Drawable)Drawable
Drawable(Drawable &&)=default (defined in Drawable)Drawable
drawBoundingBox() constDrawable
drawClipped(float xstart, float xend, float ystart, float yend) constSprite
drawClipped(Vec2 start, Vec2 end) constSprite
drawMesh(const std::vector< Vertex > &vertexes, const ShaderProgram *=nullptr) constSprite
drawMesh(Mat3 modelview, const std::vector< Vertex > &vertexes, const ShaderProgram *=nullptr) constSprite
drawScaled(float xfactor, float yfactor, const ShaderProgram *shaderProgram=nullptr) constSprite
getBottom() constDrawable
getCenter() constDrawable
getHeight() constDrawable
getLeft() constDrawable
getRight() constDrawable
getSize() constDrawable
getTop() constDrawable
getWidth() constDrawable
getX() const (defined in Drawable)Drawable
getY() const (defined in Drawable)Drawable
height (defined in Drawable)Drawableprotected
loaderSprite
LoadType enum name (defined in Sprite)Sprite
operator=(const Drawable &)=default (defined in Drawable)Drawable
operator=(Drawable &&)=default (defined in Drawable)Drawable
position (defined in Drawable)Drawableprotected
setBottom(double y) (defined in Drawable)Drawable
setBytes(const unsigned char *) (defined in Sprite)Sprite
setCenter(double x, double y)Drawablevirtual
setCenter(Vect c)Drawableinline
setLeft(double x) (defined in Drawable)Drawable
setPos(double x, double y)Drawablevirtual
setPos(Vect p)Drawableinline
setRight(double x) (defined in Drawable)Drawable
setTop(double y) (defined in Drawable)Drawable
setX(double) (defined in Drawable)Drawable
setY(double) (defined in Drawable)Drawable
Sprite(const ImageData &, double scale, std::optional< std::string_view > filename=std::nullopt)Spriteexplicit
Sprite(const uint8_t *bytes, size_t width, size_t height)Sprite
Sprite(const std::string &filename, LoadType loadType=LoadType::NORMAL)Spriteexplicit
step() overrideSpritevirtual
vertexShader()Spritestatic
width (defined in Drawable)Drawableprotected
~Drawable() (defined in Drawable)Drawablevirtual