rpcsx/rpcs3/Emu/GS/GL/GLProgram.h
Bigpet 25c3aa8e19 fixes to get llvm to compile (excepti for utils.cpp, that'll get fixed
later)

Eradicate the Array almost everywhere, some usages like Stack still
remains
2014-04-12 12:06:52 +02:00

29 lines
410 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 Delete();
};