mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
final merge before pushing back into the main branch
This commit is contained in:
@@ -208,6 +208,14 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="..\..\..\src\modules\image\EncodedImageData.cpp"
|
RelativePath="..\..\..\src\modules\image\EncodedImageData.cpp"
|
||||||
>
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\image\"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\..\src\modules\image\EncodedImageData.h"
|
RelativePath="..\..\..\src\modules\image\EncodedImageData.h"
|
||||||
@@ -233,6 +241,18 @@
|
|||||||
RelativePath="..\..\..\src\modules\image\ImageData.h"
|
RelativePath="..\..\..\src\modules\image\ImageData.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\..\src\modules\image\wrap_EncodedImageData.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\image\"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\..\src\modules\image\wrap_Image.cpp"
|
RelativePath="..\..\..\src\modules\image\wrap_Image.cpp"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1176,6 +1176,18 @@
|
|||||||
RelativePath="..\..\src\modules\image\ImageData.h"
|
RelativePath="..\..\src\modules\image\ImageData.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\modules\image\wrap_EncodedImageData.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
ObjectFile="$(IntDir)\image\"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\src\modules\image\wrap_Image.cpp"
|
RelativePath="..\..\src\modules\image\wrap_Image.cpp"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ namespace opengl
|
|||||||
// created yet.
|
// created yet.
|
||||||
currentMode.width = 0;
|
currentMode.width = 0;
|
||||||
currentMode.height = 0;
|
currentMode.height = 0;
|
||||||
|
currentMode.fullscreen = 0;
|
||||||
|
|
||||||
// Window should be centered.
|
// Window should be centered.
|
||||||
SDL_putenv(const_cast<char *>("SDL_VIDEO_CENTERED=center"));
|
SDL_putenv(const_cast<char *>("SDL_VIDEO_CENTERED=center"));
|
||||||
|
|||||||
@@ -62,10 +62,7 @@ namespace opengl
|
|||||||
ParticleSystem::~ParticleSystem()
|
ParticleSystem::~ParticleSystem()
|
||||||
{
|
{
|
||||||
if(this->sprite != 0)
|
if(this->sprite != 0)
|
||||||
{
|
|
||||||
this->sprite->release();
|
this->sprite->release();
|
||||||
this->sprite = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(pStart != 0)
|
if(pStart != 0)
|
||||||
delete [] pStart;
|
delete [] pStart;
|
||||||
@@ -138,13 +135,11 @@ namespace opengl
|
|||||||
|
|
||||||
void ParticleSystem::setSprite(Image * image)
|
void ParticleSystem::setSprite(Image * image)
|
||||||
{
|
{
|
||||||
if(this->sprite != 0)
|
if(sprite != 0)
|
||||||
{
|
sprite->release();
|
||||||
this->sprite->release();
|
|
||||||
this->sprite = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
this->sprite = image;
|
sprite = image;
|
||||||
|
sprite->retain();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParticleSystem::setBufferSize(unsigned int size)
|
void ParticleSystem::setBufferSize(unsigned int size)
|
||||||
|
|||||||
Reference in New Issue
Block a user