[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4505: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4507: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4508: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
SloGameDev.net • Poglej temo - menu

menu

Za vse novince v izdelovanju iger.

menu

OdgovorNapisal/-a senad » Ne Jan 15, 2012 2:03 pm

Pozdravljeni svi, imam jedno pitanje,..
Kako narediti menu v opengl , delam neko igro in po sreči sem našel ta forum. Če ima kdo nasvet proceduro kako delat ali primer se pripročam
PS:Opravičujem se za slabo slovenščino.
senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a Blodyavenger » Ne Jan 15, 2012 3:08 pm

Pozdravljen na SGD-ju senad! :D

Prvo me zanima, kakšen menu točno si želiš? Preprost kot je "New Game" ter "Quit" ali naprednejši z raznimi gradniki kot so tekstovna polja za vnos, gumbi itd.?
Poleg tega me še zanima, če že izrisuješ kakšne objekte preko openGL-a.
................ ...................
"Don't you dare using uninitialized variables, not in C++"
Uporabniški avatar
Blodyavenger
expert
expert
 
Prispevkov: 716
Pridružen: Pe Sep 12, 2008 3:31 pm
Kraj: Land of the Ten Hares

Re: menu

OdgovorNapisal/-a senad » Ne Jan 15, 2012 3:17 pm

Želim si imeti nekaj vmes new game options (pa sound on off nekaj na ta stil pa še kaj drugega) in še exit seveda delam igro jack sparrow bojevnik na ladji (jack se vozi z ladjo in poskuša izsuti čimveč španskih ladij tako igro na ta stil..)
senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a impulse9 » Ne Jan 15, 2012 4:53 pm

Uporabniški avatar
impulse9
SGD Moderator
SGD Moderator
 
Prispevkov: 397
Pridružen: Pe Jan 10, 2003 10:14 pm

Re: menu

OdgovorNapisal/-a senad » Ne Jan 15, 2012 4:57 pm

Ja razmišljal sem malo drugače da bi klikal ne pa da bi se premikal ali pa oboje kaj misliš impluse, če maš kako idejo..
senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a impulse9 » Ne Jan 15, 2012 5:06 pm

Uporabniški avatar
impulse9
SGD Moderator
SGD Moderator
 
Prispevkov: 397
Pridružen: Pe Jan 10, 2003 10:14 pm

Re: menu

OdgovorNapisal/-a senad » Ne Jan 15, 2012 7:51 pm

senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a senad » Po Jan 16, 2012 3:00 pm

Mogoče če mate kak tutorial ja ga ne najdem ..da jaz se potrudim ali pa če je kdo kdaj delu v open gl- mi naj da primer rad pa bi res tako da kot gumbe da kliknem ..Zelo bom vsakemu hvaležen ki mi bo pomagal
senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a Emigma » Po Jan 16, 2012 3:47 pm

To pa tudi mene zanima ;) Se strinjam z impluze9 da bi eden objavil, primer ker verjetno prvič je problem potem pa gre sej se vse dela na isto štanco..
Emigma
novinec
novinec
 
Prispevkov: 25
Pridružen: To Jan 10, 2012 10:50 pm

Re: menu

OdgovorNapisal/-a Blodyavenger » Po Jan 16, 2012 6:02 pm

Impulse9 je povedal že vse kar je pomembno, sedaj imate najverjetneje problem kako dobit koordinate miškinega kazalca oz. kako ugotovit če je bil na miški klik.



Tukaj bosta dobila vodič, kako zaznavati miško v in njene klike v GLUTU. Ko boste imela to v delovanju bomo šli korak dalje proti meniju in ustvarjanju gumbov ter njihovih reakcij :)
................ ...................
"Don't you dare using uninitialized variables, not in C++"
Uporabniški avatar
Blodyavenger
expert
expert
 
Prispevkov: 716
Pridružen: Pe Sep 12, 2008 3:31 pm
Kraj: Land of the Ten Hares

Re: menu

OdgovorNapisal/-a koscak » Po Jan 16, 2012 10:54 pm

koscak
wannabe
wannabe
 
Prispevkov: 97
Pridružen: Ne Nov 20, 2011 10:23 pm

Re: menu

OdgovorNapisal/-a klemzi » Po Jan 16, 2012 11:06 pm

Ja izpiše je pa do 512 , kot si pikslov nastavil, po moje je ok, nej pa res pogleda kak strokovnak :D, drgač pa kuskack ti si kr strokovnak če ti je to ratal naredit
klemzi
novinec
novinec
 
Prispevkov: 4
Pridružen: Ne Jan 15, 2012 1:31 pm

Re: menu

OdgovorNapisal/-a Blodyavenger » Po Jan 16, 2012 11:33 pm

................ ...................
"Don't you dare using uninitialized variables, not in C++"
Uporabniški avatar
Blodyavenger
expert
expert
 
Prispevkov: 716
Pridružen: Pe Sep 12, 2008 3:31 pm
Kraj: Land of the Ten Hares

Re: menu

OdgovorNapisal/-a senad » To Jan 17, 2012 12:03 pm

Hmm napake javi pri vektorju problem je da ga gori ustvariš kot več vektorjov spodaj pa da je kot eden, se opravičujem ker komentiram vendar mi žal ne dela... Tole dober , mislim jave napake potem pa problem je v tem da ko izrišem kvadrat 0.1 in 0.1 velikost je hud problem ker pri miški gledamo kot piksl, tam pa podam pod x,y =0.1 :)) Tak da ti dva problema če kdo ve lahka pa kodo nalimam..
senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a Emigma » To Jan 17, 2012 1:55 pm

He he jaz tut meni rabm..se pravi sem šel po navodilih in mi polno napak jav.. bom poslal kodo ..
Emigma
novinec
novinec
 
Prispevkov: 25
Pridružen: To Jan 10, 2012 10:50 pm

Re: menu

OdgovorNapisal/-a Blodyavenger » To Jan 17, 2012 7:47 pm

Celotno stvar sem napisal direktno na forum, brez preverjanja in vsekakor so napake vmes ter tiskarski škrati ampak poskusite jih sami razrešit, saj se boste tako največ naučili.

Če ne razumete kako deluje vektor class (ki ni nič drugega kot povezana lista objektov), obiščite spodnji link in si malo preberite.


Če že kaj pošiljate pošljite raje poročilo o napaki kot pa celo kodo, saj vzame veliko časa za pregledat celo kodo vsakemu posebaj. Programiranja se boste najbolje naučili tako, da se sami trudite reševati napake. Če kopirate vrsto error-ja v google boste lahko marsikaj dobili.

@senad:
Zgoraj ustvarim le en vektor, ki pa je povezana lista in hrani poljubno število elementov (kolikor jih pač dodamo). Spodaj pa dostopam da posameznega elementa v vektorju.

vector<Gumb*> Gumbi - seznam kazalcev na objekt Gumb
Gumbi.at(0) - dostop do objekta Gumb, ki se nahaja na poziciji 0 (torej je prvi v seznamu)

Glede velikosti kvadrata - meni moraš izrisovat v ortografski projekciji (2D) kar že verjetno delaš. V 2D je vs Pri kvadratu pa si moral tudi določiti širino in višino a ne? Širino pa ne boš določil 0.1 ker to ni niti piksel.

(temo sem premaknil pod forum "Začetniki")
................ ...................
"Don't you dare using uninitialized variables, not in C++"
Uporabniški avatar
Blodyavenger
expert
expert
 
Prispevkov: 716
Pridružen: Pe Sep 12, 2008 3:31 pm
Kraj: Land of the Ten Hares

Re: menu

OdgovorNapisal/-a senad » To Jan 17, 2012 8:18 pm

tega pa ne štekam kako pa dam da mi v pikslih izriše prosim..če mi lahko pokažeš,.. ker drugače ne znam izriat , samo v drugem ne pa v pikslih..
senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a Blodyavenger » To Jan 17, 2012 8:35 pm

Priponke
izris.png
izris.png (2.14 KiB) Videno 16043 krat
................ ...................
"Don't you dare using uninitialized variables, not in C++"
Uporabniški avatar
Blodyavenger
expert
expert
 
Prispevkov: 716
Pridružen: Pe Sep 12, 2008 3:31 pm
Kraj: Land of the Ten Hares

Re: menu

OdgovorNapisal/-a senad » To Jan 17, 2012 9:17 pm

senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a Blodyavenger » To Jan 17, 2012 9:56 pm

................ ...................
"Don't you dare using uninitialized variables, not in C++"
Uporabniški avatar
Blodyavenger
expert
expert
 
Prispevkov: 716
Pridružen: Pe Sep 12, 2008 3:31 pm
Kraj: Land of the Ten Hares

Re: menu

OdgovorNapisal/-a senad » To Jan 17, 2012 11:07 pm

senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a Blodyavenger » To Jan 17, 2012 11:37 pm

................ ...................
"Don't you dare using uninitialized variables, not in C++"
Uporabniški avatar
Blodyavenger
expert
expert
 
Prispevkov: 716
Pridružen: Pe Sep 12, 2008 3:31 pm
Kraj: Land of the Ten Hares

Re: menu

OdgovorNapisal/-a koscak » Sr Jan 18, 2012 12:01 am

koscak
wannabe
wannabe
 
Prispevkov: 97
Pridružen: Ne Nov 20, 2011 10:23 pm

Re: menu

OdgovorNapisal/-a Blodyavenger » Sr Jan 18, 2012 12:48 am

................ ...................
"Don't you dare using uninitialized variables, not in C++"
Uporabniški avatar
Blodyavenger
expert
expert
 
Prispevkov: 716
Pridružen: Pe Sep 12, 2008 3:31 pm
Kraj: Land of the Ten Hares

Re: menu

OdgovorNapisal/-a senad » Če Jan 26, 2012 1:51 pm

senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a Blodyavenger » Če Jan 26, 2012 10:48 pm

Super, sam da si zrihtal :D Aja, pa dobrodošel na SGD-ju ;)

Glede tekstur in tega, je Tomaa lepo napisal kako to naredit v eni drugi temi - . Poglej, nekje na sredini je napisal primer uporabe SOIL knjižnice. Upam da ti bo v pomoč
................ ...................
"Don't you dare using uninitialized variables, not in C++"
Uporabniški avatar
Blodyavenger
expert
expert
 
Prispevkov: 716
Pridružen: Pe Sep 12, 2008 3:31 pm
Kraj: Land of the Ten Hares

Re: menu

OdgovorNapisal/-a senad » Če Jan 26, 2012 11:02 pm

..
Zadnjič spremenil senad, dne Če Jan 26, 2012 11:17 pm, skupaj popravljeno 1 krat.
senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm

Re: menu

OdgovorNapisal/-a senad » Če Jan 26, 2012 11:08 pm

...
senad
novinec
novinec
 
Prispevkov: 12
Pridružen: Ne Jan 15, 2012 2:01 pm


Vrni se na Začetniki

Kdo je na strani

Po forumu brska: 0 registriranih uporabnikov in 2 gostov

cron