mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-07 22:36:49 -04:00
Remove deprecated variant of Renderer::GetInfo()
This commit is contained in:
parent
fcf95e21da
commit
31e3c4df74
@ -2,6 +2,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## 0.13.0 - unreleased
|
||||||
|
### Removed
|
||||||
|
* Deprecated ```Renderer::GetInfo()``` variant which takes pointer (use variant which takes reference)
|
||||||
|
|
||||||
## 0.12.0 - 2016-01-23
|
## 0.12.0 - 2016-01-23
|
||||||
### Fixed
|
### Fixed
|
||||||
* Link SDL2main library, which is needed on some systems
|
* Link SDL2main library, which is needed on some systems
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++11 bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@ -72,11 +72,6 @@ Renderer& Renderer::Clear() {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Renderer::GetInfo(SDL_RendererInfo* info) {
|
|
||||||
if (SDL_GetRendererInfo(renderer_, info) != 0)
|
|
||||||
throw Exception("SDL_GetRendererInfo");
|
|
||||||
}
|
|
||||||
|
|
||||||
void Renderer::GetInfo(SDL_RendererInfo& info) {
|
void Renderer::GetInfo(SDL_RendererInfo& info) {
|
||||||
if (SDL_GetRendererInfo(renderer_, &info) != 0)
|
if (SDL_GetRendererInfo(renderer_, &info) != 0)
|
||||||
throw Exception("SDL_GetRendererInfo");
|
throw Exception("SDL_GetRendererInfo");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++11 bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2016 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@ -160,21 +160,6 @@ public:
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
Renderer& Clear();
|
Renderer& Clear();
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Get information about a rendering context
|
|
||||||
///
|
|
||||||
/// \param[out] info SDL_RendererInfo structure to be filled with
|
|
||||||
/// information about the current renderer
|
|
||||||
///
|
|
||||||
/// \throws SDL2pp::Exception
|
|
||||||
///
|
|
||||||
/// \see http://wiki.libsdl.org/SDL_GetRendererInfo
|
|
||||||
///
|
|
||||||
/// \deprecated Use GetInfo(SDL_RendererInfo&) instead
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
SDL2PP_DEPRECATED void GetInfo(SDL_RendererInfo* info);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Get information about a rendering context
|
/// \brief Get information about a rendering context
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user