2013-04-17 21:29:41 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 21:29:41 -06:00
|
|
|
// Refer to the license.txt file included.
|
2010-07-06 10:16:07 -06:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2010-07-06 10:16:07 -06:00
|
|
|
|
|
|
|
struct InputVertexData;
|
|
|
|
struct OutputVertexData;
|
|
|
|
|
|
|
|
namespace TransformUnit
|
|
|
|
{
|
2013-04-13 21:54:02 -06:00
|
|
|
void MultiplyVec2Mat24(const float *vec, const float *mat, float *result);
|
|
|
|
void MultiplyVec2Mat34(const float *vec, const float *mat, float *result);
|
|
|
|
void MultiplyVec3Mat33(const float *vec, const float *mat, float *result);
|
|
|
|
void MultiplyVec3Mat34(const float *vec, const float *mat, float *result);
|
|
|
|
|
|
|
|
void TransformPosition(const InputVertexData *src, OutputVertexData *dst);
|
|
|
|
void TransformNormal(const InputVertexData *src, bool nbt, OutputVertexData *dst);
|
|
|
|
void TransformColor(const InputVertexData *src, OutputVertexData *dst);
|
|
|
|
void TransformTexCoord(const InputVertexData *src, OutputVertexData *dst, bool specialCase);
|
2010-07-06 10:16:07 -06:00
|
|
|
}
|