mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Improved GS Renderer.
This commit is contained in:
parent
6ea2c7d6a8
commit
521244b0e0
28 changed files with 2568 additions and 2702 deletions
28
rpcs3/Emu/GS/GL/GLProgram.h
Normal file
28
rpcs3/Emu/GS/GL/GLProgram.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "GLVertexProgram.h"
|
||||
#include "GLFragmentProgram.h"
|
||||
|
||||
struct GLProgram
|
||||
{
|
||||
private:
|
||||
struct Location
|
||||
{
|
||||
int loc;
|
||||
wxString name;
|
||||
};
|
||||
|
||||
Array<Location> m_locations;
|
||||
|
||||
public:
|
||||
u32 id;
|
||||
|
||||
GLProgram();
|
||||
|
||||
int GetLocation(const wxString& name);
|
||||
bool IsCreated() const;
|
||||
void Create(const u32 vp, const u32 fp);
|
||||
void Use();
|
||||
void UnUse();
|
||||
void SetTex(u32 index);
|
||||
void Delete();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue