Examples, deleting rubbish

This commit is contained in:
mabramovsd 2018-02-23 14:22:47 +03:00
parent f4cb162fa6
commit b64fd1096f
20 changed files with 137 additions and 14 deletions

View file

@ -0,0 +1,40 @@
#include "TXLib.h"
int main()
{
txCreateWindow(800, 600);
HDC texture = txLoadImage("Pictures\\Personaj.bmp");
double textureX = 50;
double textureY = 50;
double angle = 0;
double nomer_kadra = 0;
while (!GetAsyncKeyState(VK_ESCAPE))
{
txSetColor(TX_RED);
txSetFillColor(TX_RED);
txRectangle(0, 0, txGetExtentX(), txGetExtentY());
angle++;
textureX = 500 + 200 * cos (angle / 10);
textureY = 300 + 200 * sin (angle / 10);
txTransparentBlt(txDC(), textureX, textureY, 55, 86, texture, 55 * nomer_kadra, 0, RGB(0, 255, 255));
nomer_kadra++;
if (nomer_kadra > 2)
{
nomer_kadra = 0;
}
txSleep(10);
}
txDeleteDC(texture);
return 0;
}

View file

@ -0,0 +1,15 @@
#include "TXLib.h"
int main()
{
txCreateWindow(800, 600);
txSetColor(TX_WHITE);
txSetFillColor(TX_WHITE);
txRectangle(0, 0, 800, 600);
HDC texture = txLoadImage("Pictures\\Personaj.bmp");
return 0;
}

View file

@ -0,0 +1,38 @@
#include "TXLib.h"
int main()
{
txCreateWindow(800, 600);
HDC texture = txLoadImage("Pictures\\Personaj.bmp");
double textureX = 50;
double textureY = 50;
double nomer_kadra = 0;
while (!GetAsyncKeyState(VK_ESCAPE))
{
txSetColor(TX_RED);
txSetFillColor(TX_RED);
txRectangle(0, 0, txGetExtentX(), txGetExtentY());
textureX++;
textureY = 300 + 150 * sin(textureX / 10);
txTransparentBlt(txDC(), textureX, textureY, 55, 86, texture, 55 * nomer_kadra, 0, RGB(0, 255, 255));
nomer_kadra++;
if (nomer_kadra > 2)
{
nomer_kadra = 0;
}
txSleep(10);
}
txDeleteDC(texture);
return 0;
}

View file

@ -0,0 +1,44 @@
#include "TXLib.h"
int main()
{
txCreateWindow(800, 600);
HDC texture = txLoadImage("Pictures\\Personaj.bmp");
double textureX = 50;
double textureY = 50;
double angle = 0;
double nomer_kadra = 0;
while (!GetAsyncKeyState(VK_ESCAPE))
{
txSetColor(TX_RED);
txSetFillColor(TX_RED);
txRectangle(0, 0, txGetExtentX(), txGetExtentY());
/*textureX++;
textureY = 300 + 150 * sin(textureX / 10);*/
angle++;
textureX = 500 + 200 * cos (angle / 10);
textureY = 300 + 200 * sin (angle / 10);
txTransparentBlt(txDC(), textureX, textureY, 55, 86, texture, 55 * nomer_kadra, 0, RGB(0, 255, 255));
////////////////////////////////////////////////
nomer_kadra++;
if (nomer_kadra > 2)
{
nomer_kadra = 0;
}
txSleep(10);
}
txDeleteDC(texture);
return 0;
}

View file

@ -1,6 +0,0 @@
#include TXLib.h
int main()
{
}

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -1,8 +0,0 @@
C:\Users\Student\Desktop\редактор мультфильмов\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
C:\Users\Student\Desktop\редактор мультфильмов\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
C:\Users\Student\Desktop\редактор мультфильмов\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csprojResolveAssemblyReference.cache
C:\Users\Student\Desktop\редактор мультфильмов\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Form1.resources
C:\Users\Student\Desktop\редактор мультфильмов\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Properties.Resources.resources
C:\Users\Student\Desktop\редактор мультфильмов\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache
C:\Users\Student\Desktop\редактор мультфильмов\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.exe
C:\Users\Student\Desktop\редактор мультфильмов\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.pdb

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB