Adding outdated source code into master
This commit is contained in:
parent
5cf467a421
commit
2810e06b3e
27 changed files with 6854 additions and 0 deletions
31
.outdated/graphics/inc/texture.h
Normal file
31
.outdated/graphics/inc/texture.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "array2d.h"
|
||||
#include "color.h"
|
||||
#include "vec.h"
|
||||
|
||||
namespace tp {
|
||||
namespace glw {
|
||||
class texture {
|
||||
uint4 id;
|
||||
public:
|
||||
|
||||
texture();
|
||||
~texture();
|
||||
|
||||
uint4 getid();
|
||||
void update(const Array2D<rgba>& buff);
|
||||
void draw(const uint4& out = 0);
|
||||
|
||||
alni sizeAllocatedMem();
|
||||
alni sizeUsedMem();
|
||||
|
||||
static void init();
|
||||
static void deinit();
|
||||
static void draw_texture(uint4 out, uint4 in);
|
||||
static uint4 get_tex(const char* TexId);
|
||||
static void drawCurcle(vec2f pos, double radius, rgba col);
|
||||
};
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue