Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
Loading...
Searching...
No Matches
definitions.hpp File Reference
#include <string>
#include <vector>
#include <SDL3/SDL.h>
#include "../utils/logger.hpp"
#include <cereal/archives/json.hpp>
#include <box2d/types.h>

Go to the source code of this file.

Classes

struct  PhysicsConstants
 
class  Color
 
struct  Vector2
 
class  Texture
 
struct  Matrix2
 
struct  Transform
 
struct  Rect
 
struct  Frame
 
class  Animation
 
struct  Polygon
 
struct  Circle
 
struct  Capsule
 
struct  Segment
 
struct  Tile
 

Enumerations

enum class  TextureScaling { INVALID = -1 , NEAREST , LINEAR , PIXELART }
 

Enumeration Type Documentation

◆ TextureScaling

enum class TextureScaling
strong

Texture Scaling

This enum defines how the texture is rendered and scaled.

Linear scaling will smooth the values between pixels, while nearest neighbour scaling will use an average. Pixel art scaling exists due to SDL3, and I recommend you use it for pixel art textures instead of nearest neighbour.

Enumerator
INVALID 
NEAREST 
LINEAR 
PIXELART