-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: add SDLImageInterface #44
base: master
Are you sure you want to change the base?
Conversation
) | ||
include/bkengine/core/impl/SDLImageTexture.h | ||
include/bkengine/exceptions/NotImplementedException.h | ||
src/utils/InterfaceContainer.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you mixing .h and .cpp files here?
src/core/impl/SDLImageTexture.cpp | ||
) | ||
|
||
SET(HEADERS include/bkengine/core/builder/templates/AnimationBuilder_templates.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't that part of the most recent PR?
{ | ||
public: | ||
virtual void init(); | ||
virtual void cleanup(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious where you wanna call these two methods^^
(static constructor)
return nullptr; | ||
} | ||
|
||
//TODO: add renderer when GraphicsInterface is finished |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that is going to be a problem...
SDL_Texture *raw_texture = SDL_CreateTextureFromSurface(nullptr, raw_surface); | ||
SDL_FreeSurface(raw_surface); | ||
|
||
std::shared_ptr<SDLImageTexture> texture(new SDLImageTexture(raw_texture)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make_shared?
No description provided.