Skip to content

Commit

Permalink
Fixed Windows build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Nov 12, 2023
1 parent 55538d3 commit 7fe2a05
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/coders/png.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ ImageData* _png_load(const char* file){
#include <stdio.h>
#include <inttypes.h>

int _png_load(const char* file){
ImageData* _png_load(const char* file){
int r = 0;
FILE *png;
char *pngbuf = nullptr;
Expand Down Expand Up @@ -198,7 +198,6 @@ int _png_load(const char* file){

return image;
}

#endif

ImageData* png::load_image(std::string filename) {
Expand Down
1 change: 1 addition & 0 deletions src/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <memory>
#include <iostream>
#include <glm/glm.hpp>
#define GLEW_STATIC

#include "audio/Audio.h"
#include "assets/Assets.h"
Expand Down
4 changes: 3 additions & 1 deletion src/frontend/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ HudRenderer::HudRenderer(GUI* gui, Level* level, Assets* assets) : level(level),
Panel* sub = new Panel(vec2(10, 27), vec4(0.0f));
sub->orientation(Orientation::horizontal);

Label* label = new Label(wstring({L'x'+ax})+L": ");
wstring str = L"x: ";
str[0] += ax;
Label* label = new Label(str);
label->margin(vec4(2, 3, 2, 3));
sub->add(shared_ptr<UINode>(label));
sub->color(vec4(0.0f));
Expand Down
1 change: 1 addition & 0 deletions src/graphics/Texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define GRAPHICS_TEXTURE_H_

#include <string>
#include "../typedefs.h"

class ImageData;

Expand Down
1 change: 0 additions & 1 deletion src/window/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "Window.h"
#include "Events.h"

#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>

Expand Down

0 comments on commit 7fe2a05

Please sign in to comment.