partial initial refactoring: events, memcells, tracks, models, traction; NOTE: debug mode broken, investigate

This commit is contained in:
tmj-fstate
2017-10-07 01:18:54 +02:00
parent 6e8fbf7362
commit f6272d37f1
32 changed files with 4767 additions and 602 deletions

35
vertex.cpp Normal file
View File

@@ -0,0 +1,35 @@
/*
This Source Code Form is subject to the
terms of the Mozilla Public License, v.
2.0. If a copy of the MPL was not
distributed with this file, You can
obtain one at
http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "stdafx.h"
#include "vertex.h"
template <>
world_vertex &
world_vertex::operator+=( world_vertex const &Right ) {
position += Right.position;
normal += Right.normal;
texture += Right.texture;
return *this;
}
template <>
world_vertex &
world_vertex::operator*=( world_vertex const &Right ) {
position *= Right.position;
normal *= Right.normal;
texture *= Right.texture;
return *this;
}
//---------------------------------------------------------------------------