dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

kaa ielaadeet bildi?

 
dev.gamez.lv Forum Index -> Programmēšana
View previous topic :: View next topic  
Author Message
E13m3nT



Joined: 24 Jan 2006
Posts: 42

PostPosted: Wed Mar 15, 2006 8:16 pm    Post subject: kaa ielaadeet bildi?

Shobriid vieniigais veids kaa izmantot bildes ir nokompileet kopaa ar exe failu. Vai ir kaads veids kaa ielaadeet vinjas no kaadas mapiites kad tiek palaists exe fails?
Piedodiet ka nemaaku iisti tieshi aprakstiit ko man vaig bet cerams ka juus saprataat! =]
Back to top
View user's profile Send e-mail
ugizs



Joined: 07 Jan 2006
Posts: 119

PostPosted: Wed Mar 15, 2006 8:19 pm    Post subject:

a kāda valoda tiek izmantota?
Back to top
View user's profile
eXeM



Joined: 22 Mar 2005
Posts: 155
Location: Ape

PostPosted: Wed Mar 15, 2006 8:26 pm    Post subject:

Pa manam vareetu buut delfi...
Back to top
View user's profile
E13m3nT



Joined: 24 Jan 2006
Posts: 42

PostPosted: Wed Mar 15, 2006 8:27 pm    Post subject:

valoda: c++
vide: visual c++
=]
Back to top
View user's profile Send e-mail
ugizs



Joined: 07 Jan 2006
Posts: 119

PostPosted: Wed Mar 15, 2006 8:40 pm    Post subject:

ar ogl, directx vai cic kkas?
Back to top
View user's profile
E13m3nT



Joined: 24 Jan 2006
Posts: 42

PostPosted: Wed Mar 15, 2006 8:45 pm    Post subject:

a ar parasto win logu to nevar izpildiit?
ja nevar tad ar directx! =]
Back to top
View user's profile Send e-mail
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Wed Mar 15, 2006 8:57 pm    Post subject:

Ja drīkst izmantot papildus bibliotēkas, tad DevIL un FreeImage ir ļoti labas. Ja apmierina tikai BMP faili, tad ar parastu WinAPI var iztikt - LoadImage
Ja grib nedaudz pačakarēties, tad ar GDI+ var ielādēt arī jpg/gif/png/u.c. formāta bildes.
Back to top
View user's profile Send e-mail
ugizs



Joined: 07 Jan 2006
Posts: 119

PostPosted: Wed Mar 15, 2006 9:27 pm    Post subject:

es pieņemsim hedera failā taisīju tādu figņu Graphics::TBitmap *tavsZiim;
un cpp failā
tavsZiim = new Graphics::TBitmap;
tavsZiim->LoadFromFile("cels\\uz\\failu");
Canvas->Draw(X,Y,tavsZiim);

delete tavsZiim;

it kā biju apmierināts ar šādām savām izdarībām. tikai secināju, ka nevajag šito izmantot pie taimera, ja nav delete tavsZiim... a to sanāk jautri alt+ctrl+delete Very Happy nu bet šitā cik saprotu nav tā labākā metode.

peace!
Back to top
View user's profile
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Wed Mar 15, 2006 9:32 pm    Post subject:

ugizs: tas nav gadījumā Borland C++ Builder, nevis VC++?
Back to top
View user's profile Send e-mail
ugizs



Joined: 07 Jan 2006
Posts: 119

PostPosted: Wed Mar 15, 2006 9:34 pm    Post subject:

šit, vot tā ir ka uztver c++ nevis visual c++... sorri. bubu, a tā vispār ir normāla metoda, kā panākt bildes ielādi vai ir galīgi, garīgi, totāli garām?
Back to top
View user's profile
anggelus



Joined: 23 Feb 2005
Posts: 383
Location: Rīga (LV)

PostPosted: Wed Mar 15, 2006 9:35 pm    Post subject:

katru reizi ieladet un deletot bildi pie renderēšanas ir galīgi garām.
_________________
No comprendo lo que dice.
Back to top
View user's profile Send e-mail
ugizs



Joined: 07 Jan 2006
Posts: 119

PostPosted: Wed Mar 15, 2006 9:38 pm    Post subject:

sapratu. garām.
Back to top
View user's profile
ugizs



Joined: 07 Jan 2006
Posts: 119

PostPosted: Wed Mar 15, 2006 9:39 pm    Post subject:

nez kā es taisos pabeigt savu spēli ar tādām metodēm. pamazām sāku secināt, ka es eju dziļā margarīnā Very Happy
Back to top
View user's profile
anggelus



Joined: 23 Feb 2005
Posts: 383
Location: Rīga (LV)

PostPosted: Wed Mar 15, 2006 10:32 pm    Post subject:

vislabāk būtu uzkodēt kādu tekstūras menedžeri.
_________________
No comprendo lo que dice.
Back to top
View user's profile Send e-mail
E13m3nT



Joined: 24 Jan 2006
Posts: 42

PostPosted: Wed Mar 15, 2006 11:56 pm    Post subject:

paaldies! viss sanaaca ar LoadImage =]
Back to top
View user's profile Send e-mail
Display posts from previous:   
dev.gamez.lv Forum Index -> Programmēšana All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group