|
@@ -25,14 +25,9 @@
|
|
|
#include "../../Core/Context.h"
|
|
#include "../../Core/Context.h"
|
|
|
#include "../../Core/ProcessUtils.h"
|
|
#include "../../Core/ProcessUtils.h"
|
|
|
#include "../../Core/Profiler.h"
|
|
#include "../../Core/Profiler.h"
|
|
|
-#include "../../Graphics/AnimatedModel.h"
|
|
|
|
|
-#include "../../Graphics/Animation.h"
|
|
|
|
|
-#include "../../Graphics/AnimationController.h"
|
|
|
|
|
#include "../../Graphics/Camera.h"
|
|
#include "../../Graphics/Camera.h"
|
|
|
#include "../../Graphics/ConstantBuffer.h"
|
|
#include "../../Graphics/ConstantBuffer.h"
|
|
|
-#include "../../Graphics/CustomGeometry.h"
|
|
|
|
|
#include "../../Graphics/DebugRenderer.h"
|
|
#include "../../Graphics/DebugRenderer.h"
|
|
|
-#include "../../Graphics/DecalSet.h"
|
|
|
|
|
#include "../../Graphics/Geometry.h"
|
|
#include "../../Graphics/Geometry.h"
|
|
|
#include "../../Graphics/Graphics.h"
|
|
#include "../../Graphics/Graphics.h"
|
|
|
#include "../../Graphics/GraphicsEvents.h"
|
|
#include "../../Graphics/GraphicsEvents.h"
|
|
@@ -40,17 +35,11 @@
|
|
|
#include "../../Graphics/IndexBuffer.h"
|
|
#include "../../Graphics/IndexBuffer.h"
|
|
|
#include "../../Graphics/Material.h"
|
|
#include "../../Graphics/Material.h"
|
|
|
#include "../../Graphics/Octree.h"
|
|
#include "../../Graphics/Octree.h"
|
|
|
-#include "../../Graphics/ParticleEffect.h"
|
|
|
|
|
-#include "../../Graphics/ParticleEmitter.h"
|
|
|
|
|
#include "../../Graphics/Renderer.h"
|
|
#include "../../Graphics/Renderer.h"
|
|
|
#include "../../Graphics/Shader.h"
|
|
#include "../../Graphics/Shader.h"
|
|
|
#include "../../Graphics/ShaderPrecache.h"
|
|
#include "../../Graphics/ShaderPrecache.h"
|
|
|
#include "../../Graphics/ShaderProgram.h"
|
|
#include "../../Graphics/ShaderProgram.h"
|
|
|
-#include "../../Graphics/Skybox.h"
|
|
|
|
|
-#include "../../Graphics/StaticModelGroup.h"
|
|
|
|
|
#include "../../Graphics/Technique.h"
|
|
#include "../../Graphics/Technique.h"
|
|
|
-#include "../../Graphics/Terrain.h"
|
|
|
|
|
-#include "../../Graphics/TerrainPatch.h"
|
|
|
|
|
#include "../../Graphics/Texture2D.h"
|
|
#include "../../Graphics/Texture2D.h"
|
|
|
#include "../../Graphics/Texture3D.h"
|
|
#include "../../Graphics/Texture3D.h"
|
|
|
#include "../../Graphics/TextureCube.h"
|
|
#include "../../Graphics/TextureCube.h"
|
|
@@ -61,7 +50,7 @@
|
|
|
#include "../../IO/Log.h"
|
|
#include "../../IO/Log.h"
|
|
|
#include "../../Resource/ResourceCache.h"
|
|
#include "../../Resource/ResourceCache.h"
|
|
|
|
|
|
|
|
-#include <SDL/SDL_syswm.h>
|
|
|
|
|
|
|
+#include <SDL/include/SDL_syswm.h>
|
|
|
|
|
|
|
|
#include "../../DebugNew.h"
|
|
#include "../../DebugNew.h"
|
|
|
|
|
|
|
@@ -407,6 +396,11 @@ void Graphics::CenterWindow()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void* Graphics::GetSDLWindow()
|
|
|
|
|
+{
|
|
|
|
|
+ return impl_->window_;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void Graphics::RaiseWindow()
|
|
void Graphics::RaiseWindow()
|
|
|
{
|
|
{
|
|
|
if (impl_->window_)
|
|
if (impl_->window_)
|
|
@@ -592,7 +586,7 @@ void Graphics::Close()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool Graphics::TakeScreenShot(Image& destImage)
|
|
|
|
|
|
|
+bool Graphics::TakeScreenShot(Image* destImage)
|
|
|
{
|
|
{
|
|
|
PROFILE(TakeScreenShot);
|
|
PROFILE(TakeScreenShot);
|
|
|
|
|
|
|
@@ -650,8 +644,8 @@ bool Graphics::TakeScreenShot(Image& destImage)
|
|
|
mappedData.pData = 0;
|
|
mappedData.pData = 0;
|
|
|
impl_->deviceContext_->Map(stagingTexture, 0, D3D11_MAP_READ, 0, &mappedData);
|
|
impl_->deviceContext_->Map(stagingTexture, 0, D3D11_MAP_READ, 0, &mappedData);
|
|
|
|
|
|
|
|
- destImage.SetSize(width_, height_, 3);
|
|
|
|
|
- unsigned char* destData = destImage.GetData();
|
|
|
|
|
|
|
+ destImage->SetSize(width_, height_, 3);
|
|
|
|
|
+ unsigned char* destData = destImage->GetData();
|
|
|
if (mappedData.pData)
|
|
if (mappedData.pData)
|
|
|
{
|
|
{
|
|
|
for (int y = 0; y < height_; ++y)
|
|
for (int y = 0; y < height_; ++y)
|