Skip to content

Commit

Permalink
chaning names
Browse files Browse the repository at this point in the history
  • Loading branch information
Prtm2110 committed Jan 24, 2025
1 parent 2987437 commit cb76c26
Show file tree
Hide file tree
Showing 34 changed files with 36 additions and 36 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Spraky-core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

int main()
{
using namespace sparky;
using namespace rabbit;
using namespace graphics;
using namespace maths;

Window window("Sparky!", 960, 540);
Window window("rabbit!", 960, 540);
// glClearColor(1.0f, 1.0f, 1.0f, 1.0f);

mat4 ortho = mat4::orthographic(0.0f, 16.0f, 0.0f, 9.0f, -1.0f, 1.0f);
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/batchrenderer2d.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "BatchRenderer2D.h"

namespace sparky {
namespace rabbit {
namespace graphics {

BatchRenderer2D::BatchRenderer2D()
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/batchrenderer2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "renderer2d.h"
#include "buffers/indexbuffer.h"

namespace sparky {
namespace rabbit {
namespace graphics {

#define RENDERER_MAX_SPRITES 60000
Expand Down
4 changes: 2 additions & 2 deletions Spraky-core/x64/src/graphics/buffers/Buffer.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "buffer.h"

using namespace sparky;
using namespace rabbit;
using namespace graphics;

namespace sparky {
namespace rabbit {
namespace graphics {

Buffer::Buffer(GLfloat* data, GLsizei count, GLuint componenetCount)
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/buffers/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include<GL/glew.h>

namespace sparky {
namespace rabbit {
namespace graphics {

class Buffer {
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/buffers/indexbuffer.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "indexbuffer.h"

namespace sparky {
namespace rabbit {
namespace graphics {

IndexBuffer::IndexBuffer(GLushort* data, GLsizei count)
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/buffers/indexbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include<GL/glew.h>

namespace sparky {
namespace rabbit {
namespace graphics {

class IndexBuffer {
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/buffers/vertexarray.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "vertexarray.h"

namespace sparky {
namespace rabbit {
namespace graphics {
VertexArray::VertexArray()
{
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/buffers/vertexarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <vector>
#include "buffer.h"

namespace sparky{
namespace rabbit{
namespace graphics {
class VertexArray {
private:
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/renderable2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "../maths/maths.h"
#include "shader.h"

namespace sparky {
namespace rabbit {
namespace graphics {

struct VertexData
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/renderer2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "../maths/maths.h"

namespace sparky {
namespace rabbit {
namespace graphics {
class Renderer2D
{
Expand Down
4 changes: 2 additions & 2 deletions Spraky-core/x64/src/graphics/shader.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "shader.h"
#include <iostream>

using namespace sparky;
using namespace rabbit;
using namespace graphics;
using namespace utils;

namespace sparky {
namespace rabbit {
namespace graphics {

Shader::Shader(const char* vertPath, const char* fragPath)
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/shader.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <GL/glew.h>
#include "../utils/fileutils.h"
#include "../maths/maths.h"
namespace sparky {
namespace rabbit {
namespace graphics {

class Shader {
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/simple2drenderer.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "simple2drenderer.h"

namespace sparky {
namespace rabbit {
namespace graphics {

void Simple2DRenderer::submit(const Renderable2D* renderable)
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/simple2drenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "renderer2d.h"
#include "static_sprite.h"

namespace sparky {
namespace rabbit {
namespace graphics {

class Simple2DRenderer : public Renderer2D
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/sprite.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "sprite.h"

namespace sparky {
namespace rabbit {
namespace graphics {
Sprite::Sprite(float x, float y, float width, float height, const maths::vec4& color)
: Renderable2D(maths::vec3(x, y, 0), maths::vec2(width, height), color)
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/sprite.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include "renderable2d.h"
namespace sparky {
namespace rabbit {
namespace graphics {
class Sprite : public Renderable2D
{
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/static_sprite.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "static_sprite.h"
#include "../maths/maths.h"

namespace sparky {
namespace rabbit {
namespace graphics {
StaticSprite::StaticSprite(float x, float y, float width, float height, const maths::vec4& color, Shader& shader)
: Renderable2D(maths::vec3(x, y, 0), maths::vec2(width, height), color), m_Shader(shader)
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/static_sprite.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include "renderable2d.h"
namespace sparky {
namespace rabbit {
namespace graphics {
class StaticSprite : public Renderable2D
{
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <GLFW/glfw3.h>
#include "window.h"

namespace sparky {
namespace rabbit {
namespace graphics {

void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods);
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/graphics/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define MAX_KEYS 1024
#define MAX_BUTTONS 32

namespace sparky {
namespace rabbit {
namespace graphics {
class Window {
private:
Expand Down
4 changes: 2 additions & 2 deletions Spraky-core/x64/src/maths/mat4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#include "maths_func.h"

using namespace std;
using namespace sparky;
using namespace rabbit;
using namespace maths;

namespace sparky{
namespace rabbit{
namespace maths {


Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/maths/mat4.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "vec4.h"
#include "vec3.h"

namespace sparky{
namespace rabbit{
namespace maths{
struct vec4; // Forward declaration

Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/maths/maths_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#define _USE_MATH_DEFINES
#include <math.h>

namespace sparky {
namespace rabbit {
namespace maths {
inline float toRadians(float degrees) {
return (degrees * M_PI / 180.0f);
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/maths/vec2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using namespace std;


namespace sparky {
namespace rabbit {
namespace maths {
vec2::vec2() {
x = 0.0f;
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/maths/vec2.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <iostream>


namespace sparky {
namespace rabbit {
namespace maths {
struct vec2 {
float x, y;
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/maths/vec3.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "vec3.h"
using namespace std;

namespace sparky {
namespace rabbit {
namespace maths {
vec3::vec3() {
x = 0.0f;
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/maths/vec3.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <iostream>


namespace sparky {
namespace rabbit {
namespace maths {
struct vec3 {
float x, y,z;
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/maths/vec4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using namespace std;


namespace sparky {
namespace rabbit {
namespace maths {

vec4::vec4(const float& x, const float& y, const float& z, const float& w) {
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/maths/vec4.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <iostream>


namespace sparky {
namespace rabbit {
namespace maths {
struct vec4 {
float x, y,z,w;
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/utils/fileutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <sstream>
#include <stdexcept>

namespace sparky {
namespace rabbit {
namespace utils {
std::string read_file(const std::string& filepath) {
std::ifstream file(filepath);
Expand Down
2 changes: 1 addition & 1 deletion Spraky-core/x64/src/utils/fileutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <string>

namespace sparky {
namespace rabbit {
namespace utils {
std::string read_file(const std::string& filepath);
}
Expand Down

0 comments on commit cb76c26

Please sign in to comment.