fishbowl/engine/include/fishbone/draw.h

45 lines
750 B
C
Raw Normal View History

2026-06-01 13:50:35 +09:00
#ifndef __FISHBOWL_DRAW_H__
#define __FISHBOWL_DRAW_H__
#include <fishbone/pre.h>
namespace fishbone {
class Texture;
class Mesh;
class Renderer;
};
/* no includes */
namespace fishbone {
class Texture {
struct Impl;
Impl* impl;
public:
Texture(fishbone::Renderer* renderer, unsigned char* rgba, int width, int height);
~Texture();
};
class Mesh {
struct Impl;
Impl* impl;
public:
2026-06-01 14:23:48 +09:00
Mesh(fishbone::Renderer* renderer, std::vector<struct fishbone::Vector3> vertices, std::vector<struct fishbone::Vector2> texcoords, std::vector<struct fishbone::Vector3> normals, std::vector<int> elements);
2026-06-01 13:50:35 +09:00
~Mesh();
2026-06-01 14:23:48 +09:00
void draw();
2026-06-01 13:50:35 +09:00
};
class Renderer {
struct Impl;
Impl* impl;
public:
Renderer();
~Renderer();
};
};
#endif