mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-26 15:44:51 +01:00
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
|
|
|
#ifndef SE_INCL_TERRAIN_EDITING_H
|
|
#define SE_INCL_TERRAIN_EDITING_H
|
|
#ifdef PRAGMA_ONCE
|
|
#pragma once
|
|
#endif
|
|
|
|
#include <Engine/Graphics/GfxLibrary.h>
|
|
#include <Engine/Terrain/Terrain.h>
|
|
|
|
enum EEditingTool {
|
|
ET_NONE = 0,
|
|
ET_HEIGHT_TOOL = 1,
|
|
ET_SMOTH_TOOL = 2,
|
|
ET_EQUALIZE = 3,
|
|
ET_ERASE = 4,
|
|
ET_FLATERN = 5,
|
|
ET_NOISE = 6,
|
|
};
|
|
|
|
enum BufferType {
|
|
BT_INVALID = 0,
|
|
BT_HEIGHT_MAP,
|
|
BT_LAYER_MASK,
|
|
BT_EDGE_MAP,
|
|
};
|
|
|
|
enum SelectionFill {
|
|
SF_POLYGON = 0,
|
|
SF_WIREFRAME,
|
|
SF_POINTS
|
|
};
|
|
void ShowBrushSelection(void);
|
|
|
|
ENGINE_API void EditTerrain(CTerrain *ptrTerrain, CTextureData *ptdBrush, FLOAT3D &vHitPoint,
|
|
COLOR colColor, FLOAT fStrength, EEditingTool etTool, INDEX iLayerIndex = -1);
|
|
|
|
void ShowSelectionInternal(CTerrain *ptrTerrain);
|
|
|
|
ENGINE_API UWORD *GetBufferForEditing(CTerrain *ptrTerrain, Rect &rcExtract, BufferType btBufferType, INDEX iBufferData=-1);
|
|
ENGINE_API void SetBufferForEditing(CTerrain *ptrTerrain, UWORD *puwEditedBuffer, Rect &rcExtract, BufferType btBufferType, INDEX iBufferData=-1);
|
|
ENGINE_API void ShowSelection(CTerrain *ptrTerrain, Rect &rcExtract, CTextureData *ptdBrush, COLOR colSelection, FLOAT fStrenght, SelectionFill sfFill=SF_POLYGON);
|
|
|
|
#endif
|