载入中...
搜索中...
未找到
CameraPixel.h 文件参考
#include <algorithm>
#include <cmath>

浏览源代码.

类

struct  eve::graphics::PixelPerfectScale
 Shared sizing for perfect-pixel orthographic / 2D cameras. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::graphics
 卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局参数。 数据模型与渲染/交互逻辑见 CardTypes.h。
 

函数

PixelPerfectScale eve::graphics::computePixelPerfectScale (float pixelsPerUnit, int refWidth, int refHeight, int viewWidth, int viewHeight)
 Compute integer scale and projection spans for a perfect-pixel camera.
 
float eve::graphics::snapWorldToPixel (float world, float zoom)
 Snap a world coordinate onto the pixel grid for the given zoom.