#include <RenderSystem.h>
Public 属性 | |
| float | x = 0.f |
| float | y = 0.f |
| float | zoom = 1.f |
| float | r = 0.1f |
| float | g = 0.1f |
| float | b = 0.12f |
| float | a = 1.f |
| float | ambientR = 0.15f |
| float | ambientG = 0.15f |
| float | ambientB = 0.18f |
| float | pixelsPerUnit = 1.f |
| Screen pixels per world unit at scale 1; used by perfect-pixel sizing. | |
| int | pixelRefWidth = 0 |
| Virtual reference width in pixels; 0 disables integer fitting. | |
| int | pixelRefHeight = 0 |
| Virtual reference height in pixels; 0 disables integer fitting. | |
| int | pixelScale = 1 |
| Last integer upscale chosen by applyPixelPerfect. | |
| bool | pixelPerfect = false |
| When true, applyPixelPerfect / draw resolve integer zoom + optional snap. | |
| bool | pixelSnap = true |
| Snap camera center onto the pixel grid when resolving perfect-pixel zoom. | |
| bool | active = false |
| Canvas * | canvas = nullptr |
| Camera2D * | entity = nullptr |
详细描述
Data public API.
在文件 RenderSystem.h 第 29 行定义.
类成员变量说明
◆ a
| float eve::graphics::Camera2D::Data::a = 1.f |
在文件 RenderSystem.h 第 33 行定义.
◆ active
| bool eve::graphics::Camera2D::Data::active = false |
在文件 RenderSystem.h 第 47 行定义.
◆ ambientB
| float eve::graphics::Camera2D::Data::ambientB = 0.18f |
在文件 RenderSystem.h 第 34 行定义.
◆ ambientG
| float eve::graphics::Camera2D::Data::ambientG = 0.15f |
在文件 RenderSystem.h 第 34 行定义.
◆ ambientR
| float eve::graphics::Camera2D::Data::ambientR = 0.15f |
在文件 RenderSystem.h 第 34 行定义.
◆ b
| float eve::graphics::Camera2D::Data::b = 0.12f |
在文件 RenderSystem.h 第 33 行定义.
◆ canvas
| Canvas* eve::graphics::Camera2D::Data::canvas = nullptr |
在文件 RenderSystem.h 第 48 行定义.
◆ entity
| Camera2D* eve::graphics::Camera2D::Data::entity = nullptr |
在文件 RenderSystem.h 第 49 行定义.
◆ g
| float eve::graphics::Camera2D::Data::g = 0.1f |
在文件 RenderSystem.h 第 33 行定义.
◆ pixelPerfect
| bool eve::graphics::Camera2D::Data::pixelPerfect = false |
When true, applyPixelPerfect / draw resolve integer zoom + optional snap.
在文件 RenderSystem.h 第 44 行定义.
◆ pixelRefHeight
| int eve::graphics::Camera2D::Data::pixelRefHeight = 0 |
Virtual reference height in pixels; 0 disables integer fitting.
在文件 RenderSystem.h 第 40 行定义.
◆ pixelRefWidth
| int eve::graphics::Camera2D::Data::pixelRefWidth = 0 |
Virtual reference width in pixels; 0 disables integer fitting.
在文件 RenderSystem.h 第 38 行定义.
◆ pixelScale
| int eve::graphics::Camera2D::Data::pixelScale = 1 |
Last integer upscale chosen by applyPixelPerfect.
在文件 RenderSystem.h 第 42 行定义.
◆ pixelSnap
| bool eve::graphics::Camera2D::Data::pixelSnap = true |
Snap camera center onto the pixel grid when resolving perfect-pixel zoom.
在文件 RenderSystem.h 第 46 行定义.
◆ pixelsPerUnit
| float eve::graphics::Camera2D::Data::pixelsPerUnit = 1.f |
Screen pixels per world unit at scale 1; used by perfect-pixel sizing.
在文件 RenderSystem.h 第 36 行定义.
◆ r
| float eve::graphics::Camera2D::Data::r = 0.1f |
在文件 RenderSystem.h 第 33 行定义.
◆ x
| float eve::graphics::Camera2D::Data::x = 0.f |
在文件 RenderSystem.h 第 30 行定义.
◆ y
| float eve::graphics::Camera2D::Data::y = 0.f |
在文件 RenderSystem.h 第 31 行定义.
◆ zoom
| float eve::graphics::Camera2D::Data::zoom = 1.f |
在文件 RenderSystem.h 第 32 行定义.
该结构体的文档由以下文件生成:
- src/modules/graphics/RenderSystem.h