24 lines
448 B
C
24 lines
448 B
C
//
|
|
// Created by Epagris on 2020. 03. 19..
|
|
//
|
|
|
|
#ifndef CONST_BUFS
|
|
#define CONST_BUFS
|
|
|
|
#include <DirectXMath.h>
|
|
|
|
// konstansbuffer struktúrája
|
|
// TODO refactor!
|
|
struct ConstantBuffer
|
|
{
|
|
DirectX::XMFLOAT4X4 transformMatrix;
|
|
DirectX::XMFLOAT4X4 viewMatrix; // nézet-mátrix
|
|
DirectX::XMFLOAT4X4 projMatrix; // vetítési mátrix
|
|
};
|
|
|
|
struct CB_Entity {
|
|
DirectX::XMFLOAT4X4 worldMatrix; // világ-mátrix (modell-mátrix)
|
|
};
|
|
|
|
#endif //CONST_BUFS
|