1 Star 0 Fork 0

yoyojacky/CSMoE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
subrectimage.h 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
//====== Copyright ?1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#ifndef SUBRECTIMAGE_H
#define SUBRECTIMAGE_H
#ifdef _WIN32
#pragma once
#endif
#include "Image.h"
#include <vgui/VGUI2.h>
//-----------------------------------------------------------------------------
// Purpose: Check box image
//-----------------------------------------------------------------------------
class CSubRectImage : public vgui2::Image
{
public:
CSubRectImage( const char *filename, bool hardwareFiltered, int subx, int suby, int subw, int subh );
virtual ~CSubRectImage();
void GetSize( int &wide, int &tall );
void GetContentSize( int &wide, int &tall );
void SetSize( int x, int y );
void SetPos( int x, int y );
void SetColor( Color col );
const char *GetName();
void Paint();
void ForceUpload();
vgui2::HTexture GetID();
bool IsValid();
private:
vgui2::HTexture _id;
int sub[ 4 ];
char *_filename;
int _pos[2];
int _wide,_tall;
Color _color;
bool _uploaded;
bool _valid;
bool _filtered;
};
#endif // SUBRECTIMAGE_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yoyojacky/CSMoE.git
git@gitee.com:yoyojacky/CSMoE.git
yoyojacky
CSMoE
CSMoE
master

搜索帮助