mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-22 10:57:30 +01:00
29 lines
603 B
C++
29 lines
603 B
C++
#ifndef VOXEL_SURFACE_SIMPLE_H
|
|
#define VOXEL_SURFACE_SIMPLE_H
|
|
|
|
#include "voxel_surface.h"
|
|
|
|
class VoxelSurfaceSimple : public VoxelSurface {
|
|
GDCLASS(VoxelSurfaceSimple, VoxelSurface)
|
|
|
|
public:
|
|
int get_atlas_x(const VoxelSurfaceSides side) const;
|
|
void set_atlas_x(const VoxelSurfaceSides side, int value);
|
|
|
|
int get_atlas_y(const VoxelSurfaceSides side) const;
|
|
void set_atlas_y(const VoxelSurfaceSides side, int value);
|
|
|
|
void refresh_rects();
|
|
|
|
VoxelSurfaceSimple();
|
|
~VoxelSurfaceSimple();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
int _atlas_positions[VOXEL_SIDES_ARRAY_SIZE];
|
|
};
|
|
|
|
#endif
|