Work at 3ds support and backend upgrades
- Track textures (not sure if this is done tbh) - Add lithium formatters and move TextureID, TextureFormat and TextureFilter to lithium - Only include gl-helper if any glDriver is included - Add Li::Rect for UV stuff - Add Li::Texture as Info holder (still thinking of making them to ptrs - Add Check if textures are still loaded on exit
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
#include <pd/core/core.hpp>
|
||||
#include <pd/lithium/pools.hpp>
|
||||
|
||||
#include "pd/common.hpp"
|
||||
#include "pd/core/pool.hpp"
|
||||
#include "pd/lithium/vertex.hpp"
|
||||
|
||||
namespace PD {
|
||||
namespace Li {
|
||||
PD::Pool<Vertex> pVtxPool;
|
||||
@@ -14,7 +11,9 @@ PD_API void InitPools(size_t max_vertices) {
|
||||
pIdxPool.Init(max_vertices * 2);
|
||||
}
|
||||
|
||||
PD_API Vertex* AllocateVertices(size_t count) { return pVtxPool.Allocate(count); }
|
||||
PD_API Vertex* AllocateVertices(size_t count) {
|
||||
return pVtxPool.Allocate(count);
|
||||
}
|
||||
|
||||
PD_API u16* AllocateIndices(size_t count) { return pIdxPool.Allocate(count); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user