1 Star 0 Fork 2

gite-hub / libhge9

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
texture_quad.h 551 Bytes
一键复制 编辑 原始数据 按行查看 历史
gite-hub 提交于 2023-10-13 13:05 . ft
#pragma once
#include "rgb.h"
struct Vertex {
float x, y; // screen position
float z; // Z-buffer depth 0..1
uint32_t col; // color
float tx, ty; // texture coordinates
};
struct IDirect3DTexture9;
struct TextureQuad {
float x, y, kx, ky, width, height, texture_width, texture_height;
Vertex v[4];
IDirect3DTexture9* tex;
TextureQuad();
void load(IDirect3DTexture9* texture);
void setXY(int x, int y);
void setRect(int kx, int ky, int width, int height);
void update();
void setAlpha(unsigned char alpha);
void render();
};
C++
1
https://gitee.com/gite-hub/libhge9.git
git@gitee.com:gite-hub/libhge9.git
gite-hub
libhge9
libhge9
master

搜索帮助