rpcsx/rpcs3/Emu/GS/GL/GLProgram.h

29 lines
410 B
C
Raw Normal View History

#pragma once
2013-11-09 22:29:49 +01:00
#include "GLVertexProgram.h"
#include "GLFragmentProgram.h"
2013-11-09 22:29:49 +01:00
struct GLProgram
{
private:
struct Location
{
int loc;
std::string name;
};
std::vector<Location> m_locations;
public:
u32 id;
2013-11-09 22:29:49 +01:00
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 Delete();
};