Remove deprecated variant of Renderer::GetInfo()

This commit is contained in:
Dmitry Marakasov 2016-01-27 23:51:08 +03:00
parent fcf95e21da
commit 31e3c4df74
3 changed files with 6 additions and 22 deletions

View File

@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
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
### Fixed
* Link SDL2main library, which is needed on some systems

View File

@ -1,6 +1,6 @@
/*
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
warranty. In no event will the authors be held liable for any damages
@ -72,11 +72,6 @@ Renderer& Renderer::Clear() {
return *this;
}
void Renderer::GetInfo(SDL_RendererInfo* info) {
if (SDL_GetRendererInfo(renderer_, info) != 0)
throw Exception("SDL_GetRendererInfo");
}
void Renderer::GetInfo(SDL_RendererInfo& info) {
if (SDL_GetRendererInfo(renderer_, &info) != 0)
throw Exception("SDL_GetRendererInfo");

View File

@ -1,6 +1,6 @@
/*
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
warranty. In no event will the authors be held liable for any damages
@ -160,21 +160,6 @@ public:
////////////////////////////////////////////////////////////
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
///