mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-26 23:55:42 -04:00
32 lines
573 B
C++
32 lines
573 B
C++
#pragma once
|
|
#include "gpu.h"
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class GPU_HW : public GPU
|
|
{
|
|
public:
|
|
GPU_HW();
|
|
virtual ~GPU_HW();
|
|
|
|
protected:
|
|
struct HWVertex
|
|
{
|
|
s32 x;
|
|
s32 y;
|
|
u32 color;
|
|
u32 texcoord;
|
|
};
|
|
|
|
void LoadVertices(RenderCommand rc, u32 num_vertices);
|
|
|
|
void CalcViewport(int* x, int* y, int* width, int* height);
|
|
void CalcScissorRect(int* left, int* top, int* right, int* bottom);
|
|
|
|
std::string GenerateVertexShader(bool textured);
|
|
std::string GenerateFragmentShader(bool textured);
|
|
|
|
std::vector<HWVertex> m_vertex_staging;
|
|
};
|
|
|