mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-18 04:06:42 -04:00
Introduced voxel render lib written by Thomas Sneddon .
This commit is contained in:
parent
5648034cc5
commit
38ddc52d28
16 changed files with 329 additions and 215 deletions
27
MissionEditor/VoxelDrawer.h
Normal file
27
MissionEditor/VoxelDrawer.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <afxcview.h>
|
||||
#include <functional>
|
||||
|
||||
using HMIXFILE = DWORD;
|
||||
using FindFileInMixHandler = std::function<HMIXFILE(LPCTSTR lpFilename, char* pTheaterChar)>;
|
||||
|
||||
struct VoxelRectangle
|
||||
{
|
||||
int X, Y, W, H;
|
||||
};
|
||||
|
||||
class VoxelDrawer
|
||||
{
|
||||
public:
|
||||
static void Initalize();
|
||||
static void Finalize();
|
||||
static bool LoadVPLFile(const CString& name, const FindFileInMixHandler& mixFindler);
|
||||
static bool LoadVXLFile(const CString& name, const FindFileInMixHandler& mixFindler);
|
||||
static bool LoadHVAFile(const CString& name, const FindFileInMixHandler& mixFindler);
|
||||
static bool GetImageData(unsigned int nFacing, unsigned char*& pBuffer,
|
||||
int& width, int& height, int& x, int& y, const int F = 0, const int L = 0, const int H = 0);
|
||||
static bool GetImageData(unsigned int nFacing, unsigned char*& pBuffer,
|
||||
VoxelRectangle& rect, const int F = 0, const int L = 0, const int H = 0);
|
||||
static bool IsVPLLoaded();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue