fix up the rest of the GL code, add glew to project, add makefiles for opengl, fix makefiles so that it can be built with gcc, update project files to automatically output to the build directory
This commit is contained in:
@@ -18,7 +18,8 @@
|
||||
#include "util/base.h"
|
||||
#include "d3d11-subsystem.hpp"
|
||||
|
||||
void gs_texture_2d::InitSRD(vector<D3D11_SUBRESOURCE_DATA> &srd, void **data)
|
||||
void gs_texture_2d::InitSRD(vector<D3D11_SUBRESOURCE_DATA> &srd,
|
||||
const void **data)
|
||||
{
|
||||
uint32_t rowSizeBytes = width * gs_get_format_bpp(format);
|
||||
uint32_t texSizeBytes = height * rowSizeBytes / 8;
|
||||
@@ -48,7 +49,7 @@ void gs_texture_2d::InitSRD(vector<D3D11_SUBRESOURCE_DATA> &srd, void **data)
|
||||
}
|
||||
}
|
||||
|
||||
void gs_texture_2d::InitTexture(void **data)
|
||||
void gs_texture_2d::InitTexture(const void **data)
|
||||
{
|
||||
vector<D3D11_SUBRESOURCE_DATA> srd;
|
||||
D3D11_TEXTURE2D_DESC td;
|
||||
@@ -131,13 +132,12 @@ void gs_texture_2d::InitRenderTargets()
|
||||
}
|
||||
|
||||
gs_texture_2d::gs_texture_2d(device_t device, uint32_t width, uint32_t height,
|
||||
gs_color_format colorFormat, uint32_t levels, void **data,
|
||||
gs_color_format colorFormat, uint32_t levels, const void **data,
|
||||
uint32_t flags, gs_texture_type type, bool gdiCompatible,
|
||||
bool shared)
|
||||
: gs_texture (device, type, levels),
|
||||
: gs_texture (device, type, levels, colorFormat),
|
||||
width (width),
|
||||
height (height),
|
||||
format (colorFormat),
|
||||
dxgiFormat (ConvertGSTextureFormat(format)),
|
||||
isGDICompatible (gdiCompatible),
|
||||
isShared (shared),
|
||||
|
Reference in New Issue
Block a user