Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
RenderItem.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
3#pragma once
4
6
7namespace esengine {
8
9struct ScissorRect {
10 i32 x = 0, y = 0, w = 0, h = 0;
11 bool operator==(const ScissorRect& o) const {
12 return x == o.x && y == o.y && w == o.w && h == o.h;
13 }
14 bool operator!=(const ScissorRect& o) const { return !(*this == o); }
15};
16
17enum class RenderType : u8 {
18 Sprite = 0,
22 Mesh = 2,
24 Text = 4,
25#ifdef ES_ENABLE_PARTICLES
26 Particle = 5,
27#endif
28 Shape = 6,
30 Trail = 8,
31};
32
33} // namespace esengine
Core type definitions and utilities for ESEngine.
Buffers, the layout that describes them, and the bounds culling reads.
Definition Mesh.hpp:85
std::int32_t i32
Signed 32-bit integer.
Definition Types.hpp:54
std::uint8_t u8
Unsigned 8-bit integer.
Definition Types.hpp:41
bool operator!=(const ScissorRect &o) const
bool operator==(const ScissorRect &o) const