mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-12 18:51:15 +00:00
* Hint texture intent to renderer * improve transparancy for 32bit rendering * Align OpenGL ES 2.0 with SDL_GPU's 2D rendering
26 lines
508 B
C++
26 lines
508 B
C++
#pragma once
|
|
|
|
#include "miniwin/d3drm.h"
|
|
|
|
#include <vector>
|
|
|
|
void FlattenSurfaces(
|
|
const D3DRMVERTEX* vertices,
|
|
const size_t vertexCount,
|
|
const DWORD* indices,
|
|
const size_t indexCount,
|
|
bool hasTexture,
|
|
std::vector<D3DRMVERTEX>& dedupedVertices,
|
|
std::vector<uint16_t>& newIndices
|
|
);
|
|
|
|
void Create2DTransformMatrix(
|
|
const SDL_Rect& dstRect,
|
|
float scale,
|
|
float offsetX,
|
|
float offsetY,
|
|
D3DRMMATRIX4D& outMatrix
|
|
);
|
|
|
|
void CreateOrthographicProjection(float width, float height, D3DRMMATRIX4D& outProj);
|