1 / 12

Filip Andrzejewski Remigiusz Chiluta

Filip Andrzejewski Remigiusz Chiluta C++ - biblioteka allegro ( wstep i prymitywy ). Instalacja. - Odpalamy Dev-C++. Zakładka Pomoc - > O Dev-C++ - > Sprawdź uaktualnienia - W nowo otwartym oknie przy "Select devpak server" wybieramy "devpaks.org Community Devpaks".

myra
Télécharger la présentation

Filip Andrzejewski Remigiusz Chiluta

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Filip Andrzejewski Remigiusz Chiluta C++ - biblioteka allegro ( wstep i prymitywy )

  2. Instalacja - Odpalamy Dev-C++. Zakładka Pomoc - > O Dev-C++ - > Sprawdź uaktualnienia - W nowo otwartym oknie przy "Select devpak server" wybieramy "devpaks.org Community Devpaks". - Wciskamy (na samym dole) "Check for updates" - Po załadowaniu sie listy, w "Groups" wybieramy Allegro - Wciskamy "Download selected"

  3. Włączamy Allegro ! Wybieramy: Plik → Nowy → Projekt...

  4. Wybieramy: Multimedia → Allegro Application Zapisujemy caly projekt w jednym folderze

  5. I zaczyna się horror... Załaczamy biblioteke Allegro Tu piszemy nasz kod Ustawienia okna Funkcje instalujace klawiature, timer, itd...

  6. PISANIE PO EKRANIE: textout_ex ( screen,font," tu wstaw swoj tekst ",20, 20,makecol( 255, 0, 255 ),- 1 ); Funkcje ta wpisujemy ponizej „while (!key[KEY_ESC]) {”

  7. Kompilujemy nasz program i uruchamiamy go

  8. Paleta barw RGB ( 255,0,0 ) - Czerwony ( 0,255,0 ) - Zielony ( 0,0,255 ) - Niebieski ( 255,0,255 ) - Różowy ( 0,0,0 ) - Czarny ( 255,255,255 ) - Bialy ( 255,255,0 ) - Żółty

  9. Rysowanie w Allegro - Prymitywy Prymitywy w Allegro to zwykłe, podstawowe figury geometryczne takie jak trójkąty, okręgi, linie, itp.

  10. Trójkat triangle( screen, x1,y1,x2,y2,x3,y4, makecol( 255, 0, 128 ) ); y1 x1

  11. Inne prymitywy: Prostokat - rect( screen, 490, 390, 710, 510, makecol( 30, 30, 30 ) ); Okrąg - circle( screen, 100, 100, 50, makecol( 255, 64, 64 ) ); Linia - line( screen,400,200,600,400, makecol(255,128,64)); Pixel - putpixel( screen, 10, 20, makecol( 255, 0, 255 ) );

  12. Wypełnianie: Aby zamalowac nasza figure, po jej nazwie należy dodac slówka „fill” Circle → Circlefill

More Related