Pioneer
Loading...
Searching...
No Matches
src
pigui
Image.h
Go to the documentation of this file.
1
// Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4
#ifndef PIGUI_IMAGE_H
5
#define PIGUI_IMAGE_H
6
7
#include "
Pi.h
"
8
#include "
SmartPtr.h
"
9
#include "
graphics/TextureBuilder.h
"
10
11
namespace
PiGui
{
12
13
class
Image
:
public
RefCounted
{
14
public
:
15
explicit
Image
(
const
std::string &filename);
16
17
void
*
GetImTextureID
();
18
vector2f
GetSize
();
19
vector2f
GetUv
();
20
21
private
:
22
RefCountedPtr<Graphics::Texture>
m_texture;
23
};
24
25
}
// namespace PiGui
26
27
#endif
Pi.h
SmartPtr.h
TextureBuilder.h
PiGui::Image
Definition
Image.h:13
PiGui::Image::GetSize
vector2f GetSize()
Definition
Image.cpp:20
PiGui::Image::GetImTextureID
void * GetImTextureID()
Definition
Image.cpp:15
PiGui::Image::GetUv
vector2f GetUv()
Definition
Image.cpp:26
RefCountedPtr
Definition
RefCounted.h:36
RefCounted
Definition
RefCounted.h:11
vector2< float >
PiGui
Definition
LuaBody.cpp:29
Generated by
1.9.7