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