20 lines
490 B
C++
20 lines
490 B
C++
#pragma once
|
|
|
|
#include "common.h"
|
|
|
|
namespace Texture
|
|
{
|
|
extern unsigned texture;
|
|
|
|
unsigned Create(const int w = -1, const int h = -1);
|
|
const bool Load(const unsigned& texture, const char* filename);
|
|
uint8_t* Load(const char* filename);
|
|
void Update(const unsigned& texture, const int w, const int h, const uint8_t* data);
|
|
}
|
|
|
|
namespace Bitmap
|
|
{
|
|
void PutPixel(uint8_t* data, const int x, const int y, const Color& color);
|
|
const Color GetPixel(uint8_t* data, const int x, const int y);
|
|
}
|