reorganize files and add btgui

This commit is contained in:
erwin coumans
2013-03-12 23:52:31 -07:00
parent 9612c2cd3d
commit e4a7b6f487
262 changed files with 46553 additions and 14753 deletions

54
btgui/Gwen/Texture.h Normal file
View File

@@ -0,0 +1,54 @@
/*
GWEN
Copyright (c) 2010 Facepunch Studios
See license in Gwen.h
*/
#pragma once
#ifndef GWEN_TEXTURE_H
#define GWEN_TEXTURE_H
#include <string>
#include "Gwen/BaseRender.h"
#include "Gwen/TextObject.h"
namespace Gwen
{
//
// Texture
//
struct Texture
{
TextObject name;
void* data;
bool failed;
int width;
int height;
Texture()
{
data = NULL;
width = 4;
height = 4;
failed = false;
}
~Texture()
{
}
void Load( const TextObject& str, Gwen::Renderer::Base* render )
{
name = str;
render->LoadTexture( this );
}
void Release( Gwen::Renderer::Base* render )
{
render->FreeTexture( this );
}
};
}
#endif