Catégories
Liens
http://www.adidas-eqt.us.com http://www.nikerosheone.co.uk http://www.nikemercurial.us.com http://www.lebron15.net http://www.balenciagashoes.us.com http://www.toryburchshoes.us http://www.hardenshoes.us.com http://www.air-max.us.com http://www.jordanshoes.uk http://www.adidassuperstar.us.com http://www.adidasonlineshop.us.com http://www.pradasunglasses.us.org http://www.adidasgazelle.us.com http://www.mlbjerseyscheap.us http://www.kobe-shoes.us.com http://www.kobebasketballshoes.us.com http://www.hoganoutlet.cc http://www.jordan13.us.com http://www.pandorabracelet.in.net http://www.lebron15shoes.us.com http://www.adidasstansmith.us.com http://www.adidasnmdrunner.us.com http://www.boostyeezy.us.com http://www.kobesneakers.com http://www.yeezy-shoes.us http://www.nikehuarache.co.uk http://www.outletonline-michaelkors.us.org http://www.nike-airmax90.uk http://www.linksoflondon.us.com http://www.offwhitehoodie.us.com http://www.nikerosheone.us.com http://www.adidas-tubular.us.com http://www.outletonlinekatespade.us.com http://www.nikehyperdunk2017.us.com http://www.rosherun.us.com http://www.lebron-soldier10.us.com http://www.cartierbracelet.us http://www.retro-jordans.us.com http://www.adidasyeezyshoes.us.org http://www.linksoflondonus.com http://www.michaelkors-outletsonline.us.com http://www.lacosteonlineshop.us.com http://www.nikeairforce1.us.com http://www.airmax90.us.org http://www.jordan-retro.us.com http://www.stephencurry-shoes.us.com http://www.monclersoutlet.us.com http://www.yeezyboost350v2shoes.us.com http://www.jordan6.us.com http://www.lebron13.us.com http://www.nikedunks.us.org http://www.outletlongchamp.us.com http://www.longchamphandbagsoutlet.us.org http://www.airjordan.us.com http://www.hermes-birkin.us.com http://www.goldengoose-outlet.us.com http://www.hermesbelts.co.uk http://www.chrome-hearts.us.org http://www.supremeclothing.us http://www.kevindurant-shoes.us.com http://www.adidasnmds.com http://www.nmdadidasus.com http://www.charmspandora.in.net http://www.nike-huarache.com http://www.bape-hoodie.us.com http://www.adidasoutletonline.us.com http://www.hermesbelts.com http://www.fitflops-saleclearance.us.com http://www.nike-hyperdunk.us.com http://www.goyard-handbags.us.com http://www.jewelrypandora.in.net http://www.outlettimberland.us.org http://www.michael--korsoutlet.us.org http://www.yeezy-shoes.uk http://www.kobebasketballshoes.net http://www.michaeljordanshoes.net http://www.adidassuperstar.org.uk http://www.offwhiteclothing.us.com http://www.ferragamobelt.us http://www.guccibelt.us.com http://www.chromehearts.com.co http://www.yeezyboost350v2.org.uk http://www.hermes-handbags.us.com http://www.paulgeorgeshoes.us http://www.cheapnbajerseys.us.org http://www.nike-airmax2017.us.com http://www.patriotsjerseys.us.com http://www.vancleefarpels.us.com http://www.michaelkorshandbags.net.co http://www.supremehoodie.us.com http://www.jordanshoes.com.co http://www.adidas-tubular.us.com http://www.longchamp-bags.us.org http://www.louboutinshoes.uk http://www.yeezy-shoes.us.org http://www.yeezy-boost350.us.com http://www.long-champhandbags.org.uk http://www.adidasultraboost.us.org http://www.curry3.in.net http://www.jordan11retro.us.com http://www.airjordanretro.uk http://www.thelightupshoes.us.com http://www.reebokoutlet.us.org http://www.goyardhandbags.us.com http://www.adidasstore.us.com http://www.nikezoom.us.com http://www.fitflops.cc http://www.cheap--jordans.us.com http://www.michaelkors-outletstore.us.com http://www.monclerjacketsale.us http://www.nikehuaracheshoes.us.com http://www.vans-shoes.us.org http://www.ledshoes.us.com http://www.converseoutlet.us.com http://www.nikezoom.me.uk http://www.bapehoodie.us http://www.adidasstansmith.uk http://www.kyrie3.us.com http://www.outletlacoste.us.com http://www.yeezys.org.uk http://www.truereligionjeans-outlets.us.com http://www.michaelkors-outletonlines.us.com http://www.yeezyboost.in.net http://www.michael-kors-handbags.org.uk http://www.authenticjordanscheap.us.com http://www.chromehearts.net.co http://www.michaelkors-outletfactory.us.org http://www.nikeairmax2018.us.com http://www.hermes-belt.us.com http://www.yeezy-boost.us.com http://www.nikefoamposite.us.com http://www.calvinkleinoutlet.us.com http://www.nikehuarache.uk http://www.adidasneo.us.com http://www.birkinbag.us.com http://www.nikebasketballshoes.us.com http://www.longchamphandbags.us.org http://www.asicsrunningshoes.us.org http://www.yslhandbags.org http://www.yeezy-shoes.org.uk http://www.goldengoose.us.com http://www.lebron14.us.com http://www.lebronjames-shoes.us.com http://www.adidastubular.co.uk http://www.goldengoose-snearkers.com http://www.cheapretro-jordans.com http://www.basketball-shoes.us.com http://www.longchampbags.us.org http://www.paulgeorgeshoes.us.com http://www.yeezys.us.org http://www.nikepolo.us http://www.adidasyeezy.co.uk http://www.michael-kors-handbags.com.co http://www.toryburchshoes.org.uk http://www.curry4shoes.us.com http://www.vibramfivefingers.us.com http://www.cheap-airjordans.us.com http://www.jordan12.us.com http://www.tomford-sunglasses.us.com http://www.kobeshoes.uk http://www.vans-outlet.us.com http://www.katespadehandbags-outlet.us.com http://www.adidas-nmds.us.com http://www.balenciagasneakers.com http://www.cheaprealjordans.us.com http://www.yeezyboost.com.co http://www.nfljerseys.us.org http://www.curry4.us.com http://www.adidasultra.us.com http://www.christian-louboutin.eu.com http://www.shoesjordan.us.com http://www.jordan4.us.com http://www.kyrie4.org http://www.nike-freerun.us.com http://www.atlantafalconsjerseys.us http://www.michaeljordanshoes.us.com http://www.kyrie4shoes.us.com http://www.converse-shoes.us.com http://www.yeezy-shoes.org http://www.ultraboost.us.com http://www.nhljerseys.us.org http://www.truereligion-outlets.us.com http://www.jordansforcheap.us.com http://www.lebron-soldier11.us.com http://www.adidasnmd.uk http://www.diorsunglasses.in.net http://www.adidasoutletonline.com http://www.nike-airforce1.us.com http://www.kyrieirving-shoes.us.com
Adapté du livre “Programming Interactivity”, page 153
Why 2 functions update & draw ?
Exemple de code (essayer sur http://ideone.com) :
#include <iostream> using namespace std; int main() { cout << "Hello World" << endl; return 0; }
Mots clés : fichier .h (déclaration), fichier .cpp (implémentation), conventions de nommage, fonctions (signature, paramètres, appel, retour), variables, objets (attributs, méthodes), namespace, types de données, casting, structure de données (pointeur, tableau, …), structure de contrôle (if, else, for, while, switch, …), conditions, …
Vecteur
vector<float> nums; // create an empty vector of floats nums.push_back(10.5); // add a float with value 10.5 to the end of vector cout << nums[0] << endl; // print out the value of element at position 0 nums.erase( nums.begin() ); // erase the first element in the vector cout << nums.size() << endl; // print the number of elements in the vector vector<float>:: iterator it = nums.begin(); // create an iterator that points to first element cout << *it << end; // print out the value of the element pointed to by the iterator // loop for( int i = 0; i < names.size(); i=i+1){ cout << names[i] << endl; }
<blockquote> When you write code, your end goal is a compiled application - an .exe or .app that you can click on an run. The job of the compiler is to make that executable for you, to turn text into compiled binary files.
</blockquote>
Pour créer des objets en 3D, les manipuler, il faut essayer de comprendre deux champs :
Pour connaître la version OpenGL de votre carte graphique, il existe un exemple dans OpenFrameworks/examples/gl/glInfoExample.
<blockquote>Most graphics cards support OpenGL3 but some do not. You can always run the glInfoExample in examples/gl to see what your computer supports if you run into trouble or are just curious. Finally, we have OpenGL ES 2, which is what is supported on Android, iOS, and which you might be familar with from WebGL. It doesn't have a declaration at the top, but you'll notice something in most GLES shaders:</blockquote>