rpcsx/rpcs3/Emu/RSX/GL/GLProgram.h
Vincent Lejeune f483c3b9ca Revert "Merge pull request #1245 from DHrpcs3/master"
This reverts commit 5feba39ff7, reversing
changes made to ebf28f8da0.
2015-10-09 20:04:20 +02:00

30 lines
436 B
C++

#pragma once
#include "GLVertexProgram.h"
#include "GLFragmentProgram.h"
struct GLProgram
{
private:
struct Location
{
int loc;
std::string name;
};
std::vector<Location> m_locations;
public:
u32 id;
GLProgram();
int GetLocation(const std::string& name);
bool IsCreated() const;
void Create(const u32 vp, const u32 fp);
void Use();
void UnUse();
void SetTex(u32 index);
void SetVTex(u32 index);
void Delete();
};