| 3704 | } |
| 3705 | |
| 3706 | void PixelGameEngine::HW3D_DrawObject(const std::array<float, 16>& matModelView, olc::Decal* decal, const olc::DecalStructure layout, const std::vector<std::array<float, 4>>& pos, const std::vector<std::array<float, 2>>& uv, const std::vector<olc::Pixel>& col, const olc::Pixel tint) |
| 3707 | { |
| 3708 | GPUTask task; |
| 3709 | task.decal = decal; |
| 3710 | task.mode = nDecalMode; |
| 3711 | task.structure = layout; |
| 3712 | task.depth = bHW3DDepthTest; |
| 3713 | task.cull = nHW3DCullMode; |
| 3714 | task.mvp = matModelView; |
| 3715 | task.tint = tint; |
| 3716 | task.vb.resize(pos.size()); |
| 3717 | |
| 3718 | for (size_t i = 0; i < pos.size(); i++) |
| 3719 | task.vb[i] = { pos[i][0], pos[i][1], pos[i][2], 1.0f, uv[i][0], uv[i][1], col[i].n }; |
| 3720 | |
| 3721 | vLayers[nTargetLayer].vecGPUTasks.push_back(task); |
| 3722 | } |
| 3723 | |
| 3724 | void PixelGameEngine::HW3D_DrawLine(const std::array<float, 16>& matModelView, const std::array<float, 4>& pos1, const std::array<float, 4>& pos2, const olc::Pixel col) |
| 3725 | { |