aboutsummaryrefslogtreecommitdiff
path: root/source/30-game/EditorWorldGuides.cpp
blob: f0d66b89bb8f77988f10cd028183dcfdb90ca913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "EditorWorldGuides.hpp"

#include "App.hpp"
#include "CommonVertexIndex.hpp"
#include "GraphicsTags.hpp"
#include "VertexIndex.hpp"

EditorWorldGuides::EditorWorldGuides(App* app, IEditor* editor)
	: mApp{ app }
	, mEditor{ editor } // 
{
	using namespace Tags;

	mRoGrid.SetFormat(gVformatLines.Get(), IT_16Bit);
	mRoGrid.SetMaterial(gDefaultMaterial.Get());
	mRoGrid.RebuildIfNecessary();

	mRoDebugSkybox.SetFormat(gVformatStandard.Get(), IT_16Bit);
	mRoDebugSkybox.SetMaterial(gDefaultMaterial.Get());
	mRoDebugSkybox.RebuildIfNecessary();
}

void EditorWorldGuides::Update() {
	auto& camera = *mApp->GetActiveCamera();
	// TODO
}