载入中...
搜索中...
未找到
eve::graphics::PixelPerfectScale结构体 参考

Shared sizing for perfect-pixel orthographic / 2D cameras. 更多...

#include <CameraPixel.h>

Public 属性

int scale = 1
 
float orthoHeight = 1.f
 
float zoom2D = 1.f
 
float worldPerPixel = 1.f
 

详细描述

Shared sizing for perfect-pixel orthographic / 2D cameras.

pixelsPerUnit is framebuffer pixels per world unit at scale 1. When a reference resolution is set, an integer upscale fits inside the live viewport so texels stay on whole pixels. orthoHeight is the full vertical world span for Camera3D; zoom2D is Camera2D's scale factor.

在文件 CameraPixel.h 第 16 行定义.

类成员变量说明

◆ orthoHeight

float eve::graphics::PixelPerfectScale::orthoHeight = 1.f

在文件 CameraPixel.h 第 18 行定义.

◆ scale

int eve::graphics::PixelPerfectScale::scale = 1

在文件 CameraPixel.h 第 17 行定义.

◆ worldPerPixel

float eve::graphics::PixelPerfectScale::worldPerPixel = 1.f

在文件 CameraPixel.h 第 20 行定义.

◆ zoom2D

float eve::graphics::PixelPerfectScale::zoom2D = 1.f

在文件 CameraPixel.h 第 19 行定义.


该结构体的文档由以下文件生成: