2013-04-18 05:09:55 +02:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 05:46:09 +01:00
|
|
|
|
|
|
|
#ifndef _VERTEXSHADERMANAGER_H
|
|
|
|
#define _VERTEXSHADERMANAGER_H
|
|
|
|
|
2008-12-26 18:33:53 +01:00
|
|
|
#include "VertexShaderGen.h"
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2012-01-01 21:46:02 +01:00
|
|
|
class PointerWrap;
|
|
|
|
|
2011-01-29 22:13:56 +01:00
|
|
|
void UpdateProjectionHack(int iParams[], std::string sParams[]);
|
2009-12-05 14:56:23 +01:00
|
|
|
|
2012-05-27 08:03:26 +02:00
|
|
|
void UpdateViewportWithCorrection();
|
|
|
|
|
2008-12-26 11:43:18 +01:00
|
|
|
// The non-API dependent parts.
|
|
|
|
class VertexShaderManager
|
|
|
|
{
|
|
|
|
public:
|
2009-09-15 23:49:15 +02:00
|
|
|
static void Init();
|
|
|
|
static void Dirty();
|
|
|
|
static void Shutdown();
|
2012-01-01 21:46:02 +01:00
|
|
|
static void DoState(PointerWrap &p);
|
2013-03-20 02:51:12 +01:00
|
|
|
|
2009-09-15 23:49:15 +02:00
|
|
|
// constant management
|
2009-08-15 09:20:37 +02:00
|
|
|
static void SetConstants();
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2009-09-15 23:49:15 +02:00
|
|
|
static void InvalidateXFRange(int start, int end);
|
2011-02-05 19:25:34 +01:00
|
|
|
static void SetTexMatrixChangedA(u32 value);
|
|
|
|
static void SetTexMatrixChangedB(u32 value);
|
|
|
|
static void SetViewportChanged();
|
|
|
|
static void SetProjectionChanged();
|
|
|
|
static void SetMaterialColorChanged(int index);
|
2009-04-19 12:10:45 +02:00
|
|
|
|
2013-07-22 06:14:42 +02:00
|
|
|
static void TranslateView(float x, float y, float z = 0.0f);
|
2009-09-15 23:49:15 +02:00
|
|
|
static void RotateView(float x, float y);
|
|
|
|
static void ResetView();
|
2008-12-08 05:46:09 +01:00
|
|
|
};
|
|
|
|
|
2009-07-26 11:52:35 +02:00
|
|
|
#endif // _VERTEXSHADERMANAGER_H
|