add Texture and Item with dependencies to makefile

This commit is contained in:
frank 2021-09-24 02:45:09 -04:00
parent ea255f5247
commit c901b1b720
4 changed files with 61 additions and 2 deletions

View File

@ -69,6 +69,8 @@ $(SB_SRC_DIR)Box.o : $(addprefix $(SB_SRC_DIR),extension.hpp Segment.hpp)
$(SB_SRC_DIR)Segment.o : $(addprefix $(SB_SRC_DIR),extension.hpp Box.hpp)
$(SB_SRC_DIR)Pixels.o : $(addprefix $(SB_SRC_DIR),Box.hpp extension.hpp)
$(SB_SRC_DIR)Audio.o : $(addprefix $(SB_SRC_DIR),Node.hpp Display.hpp Configuration.hpp Box.hpp filesystem.hpp extension.hpp)
$(SB_SRC_DIR)Texture.o : $(addprefix $(SB_SRC_DIR),GLObject.cpp filesystem.hpp Game.hpp)
$(SRC_DIR)Item.o : $(addprefix $(SB_SRC_DIR),extension.hpp Node.hpp Texture.hpp)
$(SRC_DIR)Pudding.o : $(SRC_H_FILES) $(SB_H_FILES)
%.o : %.cpp %.hpp
$(CPPC) $(CPP_FLAGS) $< -c -o $@

2
lib/sb

@ -1 +1 @@
Subproject commit 1a4b8507e3886e02ab1b6589ed3823d7fafd1654
Subproject commit 6adac9806faba1483da80895de4d9edb783cdb1f

View File

@ -14,8 +14,8 @@
#include <memory>
#include <functional>
#include <SDL.h>
#include <extension.hpp>
#include "json/json.hpp"
#include "extension.hpp"
#include "Node.hpp"
#include "Texture.hpp"

View File

@ -109,4 +109,61 @@ public:
};
class VAO
{
private:
std::shared_ptr<GLuint> array_id = nullptr;
public:
VAO() {};
void generate();
void id(GLuint);
GLuint id() const;
void bind() const;
static void destroy(GLuint*);
};
class Buffer
{
private:
std::shared_ptr<GLuint> buffer_id = nullptr;
public:
Buffer() {};
void generate();
void id(GLuint);
};
class VBO : public Buffer
{
};
class Attributes
{
};
class Model
{
};
class Plane : public Model
{
};
class Billboard : public Plane
{
};
class Button : public Billboard
{
};
#endif