载入中...
搜索中...
未找到
CardTypes.cpp 文件参考
#include "card/CardTypes.h"
#include "graphics/Graphics.h"
#include <algorithm>
#include <random>

浏览源代码.

命名空间

namespace  eve
 
namespace  eve::card
 

函数

const char * eve::card::cardStateName (CardState state)
 状态枚举的字符串名(用于脚本/调试)。
 
void eve::card::printCentered (graphics::Graphics *gfx, const std::string &text, float cx, float cy, float scale, const glm::vec4 &color)
 渲染辅助(也供 Zone / Deck 复用)。
 
void eve::card::renderCardBack (graphics::Graphics *gfx, float x, float y, float w, float h, float angle, float a)
 绘制牌背。
 
void eve::card::renderCard (graphics::Graphics *gfx, const CardData &card, const LayoutConfig &cfg, bool back)
 绘制单张卡牌(正面或牌背)。
 

变量说明

◆ active

◆ cx

float cx = 0.f

在文件 CardTypes.cpp31 行定义.

被这些函数引用 eve::graphics::Batcher::addRectRotated(), eve::graphics::Batcher::addTexturedRectRotated(), eve::spatial::cellKey2(), eve::spatial::cellKey3(), eve::grid::cellToDepthY(), eve::grid::cellToWorld(), eve::math::Math::circleRectOverlap(), eve::voxel::decodedSecondTriangleMatchesNormal(), eve::voxel::decodedWindingMatchesNormal(), eve::voxel::VoxelWorld::deserializeWorld(), eve::graphics::vulkan::Graphics::drawSolidRectRotated(), eve::graphics::webgpu::Graphics::drawSolidRectRotated(), eve::graphics::vulkan::Graphics::drawTexturedRectShaderUVRotated(), eve::graphics::webgpu::Graphics::drawTexturedRectShaderUVRotated(), eve::physics::Fluid::emit(), eve::building::PlacementSystem::ensureBuiltins(), eve::map::Pathfinder::findPath(), eve::procgen::generateSkyscraperMesh(), eve::voxel::VoxelWorld::getChunk(), eve::voxel::VoxelWorld::getChunk(), eve::voxel::VoxelWorld::getOrCreateChunk(), eve::graphics::vulkan::Graphics::getPixel(), eve::voxel::VoxelWorld::getVisibleChunkCoord(), eve::voxel::VoxelWorld::getVoxel(), eve::voxel::VoxelWorld::hasChunk(), eve::spatial::AABB2::intersectsCircle(), eve::spatial::AABB3::intersectsSphere(), eve::procgen::marchingCubes(), eve::graphics::vulkan::Graphics::newMeshCylinder(), eve::math::Math::pointInCircle(), eve::math::Math::pointInSphere(), eve::card::printCentered(), eve::spatial::BSPTree2D::queryCircle(), eve::spatial::QuadTree::queryCircle(), eve::spatial::SpatialHash2D::queryCircle(), eve::spatial::SpatialHash2D::queryPoint(), eve::spatial::SpatialHash3D::queryPoint(), eve::spatial::BSPTree3D::querySphere(), eve::spatial::Octree::querySphere(), eve::spatial::SpatialHash3D::querySphere(), eve::math::Math::raycastCircle2(), eve::math::Math::raycastSphere(), eve::voxel::VoxelWorld::removeChunk(), eve::procgen::TerrainSampler::sample(), eve::math::Math::segmentsIntersect(), eve::voxel::VoxelWorld::selectVisible(), eve::voxel::VoxelWorld::serializeWorld(), eve::voxel::VoxelWorld::setVoxel(), eve::graphics::texCellBombSampleUV(), eve::voxel::VoxelWorld::unloadChunksOutside(), eve::grid::worldToCell(), eve::building::PlacementWorld::worldToCell3DX(), eve::building::PlacementWorld::worldToCell3DY(), eve::building::PlacementWorld::worldToCellX() , 以及 eve::building::PlacementWorld::worldToCellY().

◆ cy

float cy = 0.f

在文件 CardTypes.cpp32 行定义.

被这些函数引用 eve::graphics::Batcher::addRectRotated(), eve::graphics::Batcher::addTexturedRectRotated(), eve::spatial::cellKey2(), eve::spatial::cellKey3(), eve::grid::cellToDepthY(), eve::grid::cellToWorld(), eve::math::Math::circleRectOverlap(), eve::voxel::decodedSecondTriangleMatchesNormal(), eve::voxel::decodedWindingMatchesNormal(), eve::voxel::VoxelWorld::deserializeWorld(), eve::graphics::vulkan::Graphics::drawSolidRectRotated(), eve::graphics::webgpu::Graphics::drawSolidRectRotated(), eve::graphics::vulkan::Graphics::drawTexturedRectShaderUVRotated(), eve::graphics::webgpu::Graphics::drawTexturedRectShaderUVRotated(), eve::physics::Fluid::emit(), eve::building::PlacementSystem::ensureBuiltins(), eve::map::Pathfinder::findPath(), eve::procgen::generateBushMesh(), eve::voxel::VoxelWorld::getChunk(), eve::voxel::VoxelWorld::getChunk(), eve::voxel::VoxelWorld::getOrCreateChunk(), eve::graphics::vulkan::Graphics::getPixel(), eve::voxel::VoxelWorld::getVisibleChunkCoord(), eve::voxel::VoxelWorld::getVoxel(), eve::voxel::VoxelWorld::hasChunk(), eve::spatial::AABB2::intersectsCircle(), eve::spatial::AABB3::intersectsSphere(), eve::procgen::marchingCubes(), eve::math::Math::pointInCircle(), eve::math::Math::pointInSphere(), eve::card::printCentered(), eve::spatial::BSPTree2D::queryCircle(), eve::spatial::QuadTree::queryCircle(), eve::spatial::SpatialHash2D::queryCircle(), eve::spatial::SpatialHash2D::queryPoint(), eve::spatial::SpatialHash3D::queryPoint(), eve::spatial::BSPTree3D::querySphere(), eve::spatial::Octree::querySphere(), eve::spatial::SpatialHash3D::querySphere(), eve::math::Math::raycastCircle2(), eve::math::Math::raycastSphere(), eve::voxel::VoxelWorld::removeChunk(), eve::procgen::TerrainSampler::sample(), eve::math::Math::segmentsIntersect(), eve::voxel::VoxelWorld::selectVisible(), eve::voxel::VoxelWorld::serializeWorld(), eve::voxel::VoxelWorld::setVoxel(), eve::graphics::texCellBombSampleUV(), eve::voxel::VoxelWorld::unloadChunksOutside(), eve::grid::worldToCell(), eve::building::PlacementWorld::worldToCell3DX(), eve::building::PlacementWorld::worldToCell3DY(), eve::building::PlacementWorld::worldToCellX() , 以及 eve::building::PlacementWorld::worldToCellY().

◆ degrees