38 lines
465 B
C++
38 lines
465 B
C++
#pragma once
|
|
|
|
#include "context.hpp"
|
|
|
|
#include <string>
|
|
|
|
|
|
namespace hpr::gpu
|
|
{
|
|
|
|
class Texture : public Context
|
|
{
|
|
protected:
|
|
|
|
std::string p_filename;
|
|
int p_width;
|
|
int p_height;
|
|
|
|
public:
|
|
|
|
// Constructors
|
|
|
|
Texture();
|
|
|
|
Texture(DeviceAPI api);
|
|
|
|
virtual ~Texture();
|
|
|
|
// Member functions
|
|
|
|
std::string filename() const;
|
|
|
|
int width() const;
|
|
|
|
int height() const;
|
|
};
|
|
|
|
} // end namespace hpr::gpu
|