├── .gitignore ├── AUTHORS ├── COPYING ├── Entitlements.plist ├── Makefile ├── ProjectionMapping.xcodeproj └── project.pbxproj ├── README ├── addons.make ├── bin └── data │ ├── car.jpg │ ├── img │ ├── car.jpg │ ├── ofTheo.jpg │ └── test_mask.png │ ├── ofTheo.jpg │ ├── slideshow │ ├── 1 │ │ ├── car.jpg │ │ └── ofTheo.jpg │ └── 2 │ │ ├── 1.jpg │ │ ├── 2.jpg │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ ├── 6.jpg │ │ ├── 7.jpg │ │ ├── 8.jpg │ │ └── 9.jpg │ ├── type │ ├── frabk.ttf │ ├── mono.ttf │ └── verdana.ttf │ └── video │ ├── avi_test_1.mp4 │ └── fingers.mov ├── config.make ├── openFrameworks-Info.plist ├── projection_mapping_linux.cbp ├── projection_mapping_linux.workspace ├── projection_mapping_linux64.cbp ├── projection_mapping_linux64.workspace └── src ├── ball.h ├── main.cpp ├── quad.cpp ├── quad.h ├── testApp.cpp └── testApp.h /.gitignore: -------------------------------------------------------------------------------- 1 | *.bak 2 | *~ 3 | *# 4 | *.swp 5 | *.layout 6 | *.depend 7 | *.mo 8 | *.pot 9 | 10 | # ignore Mac OS X finder metadata files 11 | .DS_Store 12 | 13 | # no CVS or SVN 14 | CVS/ 15 | .svn/ 16 | 17 | /bin/projection_mapping* 18 | /bin/lpmt* 19 | /bin/data/*.xml 20 | /bin/data/video/house* 21 | .frag 22 | .xml 23 | 24 | # general generated data 25 | *.a 26 | *.o 27 | *.dylib 28 | *.d 29 | 30 | # XCode specific files 31 | build/ 32 | *.mode1v3 33 | *.pbxuser 34 | *.perspectivev3 35 | xcuserdata/ 36 | 37 | # Compiled source # 38 | ################### 39 | *.com 40 | *.class 41 | *.dll 42 | *.exe 43 | *.so 44 | 45 | # Packages # 46 | ############ 47 | # it's better to unpack these files and commit the raw source 48 | # git has its own built in compression methods 49 | *.7z 50 | *.dmg 51 | *.gz 52 | *.iso 53 | *.jar 54 | *.rar 55 | *.tar 56 | *.zip 57 | 58 | # Logs and databases # 59 | ###################### 60 | *.log 61 | *.sql 62 | *.sqlite 63 | 64 | # OS generated files # 65 | ###################### 66 | .DS_Store? 67 | ehthumbs.db 68 | Icon? 69 | Thumbs.db 70 | 71 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | francesco fantoni 2 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | application-identifier 7 | $(AppIdentifierPrefix)$(CFBundleIdentifier) 8 | keychain-access-groups 9 | 10 | $(AppIdentifierPrefix)$(CFBundleIdentifier) 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # openFrameworks universal makefile 2 | # 3 | # make help : shows this message 4 | # make Debug: makes the application with debug symbols 5 | # make Release: makes the app with optimizations 6 | # make: the same as make Release 7 | # make CleanDebug: cleans the Debug target 8 | # make CleanRelease: cleans the Release target 9 | # make clean: cleans everything 10 | # 11 | # 12 | # this should work with any OF app, just copy any example 13 | # change the name of the folder and it should compile 14 | # only .cpp support, don't use .c files 15 | # it will look for files in any folder inside the application 16 | # folder except that in the EXCLUDE_FROM_SOURCE variable 17 | # it doesn't autodetect include paths yet 18 | # add the include paths in the USER_CFLAGS variable 19 | # using the gcc syntax: -Ipath 20 | # 21 | # to add addons to your application, edit the addons.make file 22 | # in this directory and add the names of the addons you want to 23 | # include 24 | # 25 | # edit the following vars to customize the makefile 26 | 27 | 28 | COMPILER_OPTIMIZATION = -march=native -mtune=native -O3 29 | EXCLUDE_FROM_SOURCE="bin,.xcodeproj,obj" 30 | USER_CFLAGS = 31 | USER_LD_FLAGS = 32 | USER_LIBS = 33 | 34 | 35 | 36 | 37 | # you shouldn't modify anything below this line 38 | 39 | 40 | SHELL = /bin/sh 41 | CXX = g++ 42 | 43 | ARCH = $(shell uname -m) 44 | ifeq ($(ARCH),x86_64) 45 | LIBSPATH=linux64 46 | else 47 | LIBSPATH=linux 48 | endif 49 | 50 | NODEPS = clean 51 | SED_EXCLUDE_FROM_SRC = $(shell echo $(EXCLUDE_FROM_SOURCE) | sed s/\,/\\\\\|/g) 52 | SOURCE_DIRS = $(shell find . -maxdepth 1 -mindepth 1 -type d | grep -v $(SED_EXCLUDE_FROM_SRC) | sed s/.\\///) 53 | SOURCES = $(shell find $(SOURCE_DIRS) -name "*.cpp" -or -name "*.c") 54 | OBJFILES = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCES))) 55 | # APPNAME = $(shell basename `pwd`) 56 | APPNAME = "lpmt" 57 | CORE_INCLUDES = $(shell find ../../../libs/openFrameworks/ -type d) 58 | CORE_INCLUDE_FLAGS = $(addprefix -I,$(CORE_INCLUDES)) 59 | INCLUDES = $(shell find ../../../libs/*/include -type d) 60 | INCLUDES_FLAGS = $(addprefix -I,$(INCLUDES)) 61 | LIB_STATIC = $(shell ls ../../../libs/*/lib/$(LIBSPATH)/*.a | grep -v openFrameworksCompiled | sed "s/.*\\/lib\([^/]*\)\.a/-l\1/") 62 | LIB_SHARED = $(shell ls ../../../libs/*/lib/$(LIBSPATH)/*.so | grep -v openFrameworksCompiled| sed "s/.*\\/lib\([^/]*\)\.so/-l\1/") 63 | 64 | #LIB_PATHS_FLAGS = -L../../../libs/openFrameworksCompiled/lib/$(LIBSPATH) 65 | LIB_PATHS_FLAGS = $(shell ls -d ../../../libs/*/lib/$(LIBSPATH) | sed "s/\(\.*\)/-L\1/") 66 | 67 | CFLAGS = -Wall -fexceptions 68 | CFLAGS += -I. 69 | CFLAGS += $(INCLUDES_FLAGS) 70 | CFLAGS += $(CORE_INCLUDE_FLAGS) 71 | CFLAGS +=`pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --cflags` 72 | 73 | LDFLAGS = $(LIB_PATHS_FLAGS) -Wl,-rpath=./libs 74 | 75 | LIBS = $(LIB_SHARED) 76 | LIBS += $(LIB_STATIC) 77 | LIBS +=`pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev --libs` 78 | LIBS += -lglut -lGL -lGLU -lasound 79 | 80 | ifeq ($(findstring addons.make,$(wildcard *.make)),addons.make) 81 | ADDONS_INCLUDES = $(shell find ../../../addons/*/src/ -type d) 82 | ADDONS_INCLUDES += $(shell find ../../../addons/*/libs/ -type d) 83 | ADDONSCFLAGS = $(addprefix -I,$(ADDONS_INCLUDES)) 84 | 85 | ADDONS_LIBS_STATICS = $(shell ls ../../../addons/*/libs/*/lib/$(LIBSPATH)/*.a) 86 | ADDONS_LIBS_SHARED = $(shell ls ../../../addons/*/libs/*/lib/$(LIBSPATH)/*.so) 87 | 88 | ADDONSLIBS = $(ADDONS_LIBS_STATICS) 89 | ADDONSLIBS += $(ADDONS_LIBS_SHARED) 90 | 91 | ADDONS = $(shell cat addons.make) 92 | ADDONS_REL_DIRS = $(addsuffix /src, $(ADDONS)) 93 | ADDONS_LIBS_REL_DIRS = $(addsuffix /libs, $(ADDONS)) 94 | ADDONS_DIRS = $(addprefix ../../../addons/, $(ADDONS_REL_DIRS) ) 95 | ADDONS_LIBS_DIRS = $(addprefix ../../../addons/, $(ADDONS_LIBS_REL_DIRS) ) 96 | ADDONS_SOURCES = $(shell find $(ADDONS_DIRS) -name "*.cpp" -or -name "*.c") 97 | ADDONS_SOURCES += $(shell find $(ADDONS_LIBS_DIRS) -name "*.cpp" -or -name "*.c" 2>/dev/null) 98 | ADDONS_OBJFILES = $(subst ../../../, ,$(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(ADDONS_SOURCES)))) 99 | endif 100 | 101 | 102 | 103 | ifeq ($(findstring Debug,$(MAKECMDGOALS)),Debug) 104 | TARGET_CFLAGS = -g 105 | TARGET_LIBS = -lopenFrameworksDebug 106 | TARGET_NAME = Debug 107 | BIN_NAME = $(APPNAME)_debug 108 | TARGET = bin/$(BIN_NAME) 109 | endif 110 | 111 | ifeq ($(findstring Release,$(MAKECMDGOALS)),Release) 112 | TARGET_CFLAGS = $(COMPILER_OPTIMIZATION) 113 | TARGET_LIBS = -lopenFrameworks 114 | TARGET_NAME = Release 115 | BIN_NAME = $(APPNAME) 116 | TARGET = bin/$(BIN_NAME) 117 | endif 118 | 119 | ifeq ($(MAKECMDGOALS),) 120 | TARGET_CFLAGS = $(COMPILER_OPTIMIZATION) 121 | TARGET_LIBS = -lopenFrameworks 122 | TARGET_NAME = Release 123 | BIN_NAME = $(APPNAME) 124 | TARGET = bin/$(BIN_NAME) 125 | endif 126 | 127 | ifeq ($(MAKECMDGOALS),clean) 128 | TARGET = bin/$(APPNAME)_debug bin/$(APPNAME) 129 | endif 130 | 131 | OBJ_OUTPUT = obj/$(TARGET_NAME)/ 132 | CLEANTARGET = Clean$(TARGET_NAME) 133 | OBJS = $(addprefix $(OBJ_OUTPUT), $(OBJFILES)) 134 | DEPFILES = $(patsubst %.o,%.d,$(OBJS)) 135 | ifeq ($(findstring addons.make,$(wildcard *.make)),addons.make) 136 | ADDONS_OBJS = $(addprefix $(OBJ_OUTPUT), $(ADDONS_OBJFILES)) 137 | DEPFILES += $(patsubst %.o,%.d,$(ADDONS_OBJS)) 138 | endif 139 | 140 | .PHONY: Debug Release all after 141 | 142 | Release: $(TARGET) after 143 | 144 | Debug: $(TARGET) after 145 | 146 | all: 147 | make Release 148 | 149 | 150 | #This rule does the compilation 151 | #$(OBJS): $(SOURCES) 152 | $(OBJ_OUTPUT)%.o: %.cpp 153 | @echo "compiling object for: " $< 154 | mkdir -p $(@D) 155 | $(CXX) -c $(TARGET_CFLAGS) $(CFLAGS) $(ADDONSCFLAGS) $(USER_CFLAGS) -MMD -MP -MF$(OBJ_OUTPUT)$*.d -MT$(OBJ_OUTPUT)$*.d -o$@ -c $< 156 | 157 | $(OBJ_OUTPUT)%.o: %.c 158 | @echo "compiling object for: " $< 159 | mkdir -p $(@D) 160 | $(CC) -c $(TARGET_CFLAGS) $(CFLAGS) $(ADDONSCFLAGS) $(USER_CFLAGS) -MMD -MP -MF$(OBJ_OUTPUT)$*.d -MT$(OBJ_OUTPUT)$*.d -o$@ -c $< 161 | 162 | 163 | $(OBJ_OUTPUT)%.o: ../../../%.cpp 164 | @echo "compiling addon object for" $< 165 | mkdir -p $(@D) 166 | $(CXX) $(TARGET_CFLAGS) $(CFLAGS) $(ADDONSCFLAGS) $(USER_CFLAGS) -MMD -MP -MF$(OBJ_OUTPUT)$*.d -MT$(OBJ_OUTPUT)$*.d -o $@ -c $< 167 | 168 | $(OBJ_OUTPUT)%.o: ../../../%.c 169 | @echo "compiling addon object for" $< 170 | mkdir -p $(@D) 171 | $(CC) $(TARGET_CFLAGS) $(CFLAGS) $(ADDONSCFLAGS) $(USER_CFLAGS) -MMD -MP -MF$(OBJ_OUTPUT)$*.d -MT$(OBJ_OUTPUT)$*.d -o $@ -c $< 172 | 173 | $(TARGET): $(OBJS) $(ADDONS_OBJS) 174 | @echo "linking" $(TARGET) 175 | $(CXX) -o $@ $(OBJS) $(ADDONS_OBJS) $(LDFLAGS) $(USER_LDFLAGS) $(TARGET_LIBS) $(LIBS) $(ADDONSLIBS) $(USER_LIBS) 176 | 177 | -include $(DEPFILES) 178 | 179 | .PHONY: clean CleanDebug CleanRelease 180 | clean: 181 | rm -Rf obj 182 | rm -f -v $(TARGET) 183 | rm -Rf -v bin/libs 184 | 185 | $(CLEANTARGET): 186 | rm -Rf -v $(OBJ_OUTPUT) 187 | rm -f -v $(TARGET) 188 | 189 | 190 | after: 191 | cp -r ../../../export/$(LIBSPATH)/libs bin/ 192 | @echo 193 | @echo " compiling done" 194 | @echo " to launch the application" 195 | @echo 196 | @echo " cd bin" 197 | @echo " ./$(BIN_NAME)" 198 | @echo 199 | 200 | 201 | .PHONY: help 202 | help: 203 | @echo 204 | @echo openFrameworks universal makefile 205 | @echo 206 | @echo targets: 207 | @echo "make Debug: builds the application with debug symbols" 208 | @echo "make Release: builds the app with optimizations" 209 | @echo "make: = make Release" 210 | @echo "make all: = make Release" 211 | @echo "make CleanDebug: cleans the Debug target" 212 | @echo "make CleanRelease: cleans the Release target" 213 | @echo "make clean: cleans everything" 214 | @echo 215 | @echo this should work with any OF app, just copy any example 216 | @echo change the name of the folder and it should compile 217 | @echo "only .cpp support, don't use .c files" 218 | @echo it will look for files in any folder inside the application 219 | @echo folder except that in the EXCLUDE_FROM_SOURCE variable. 220 | @echo "it doesn't autodetect include paths yet" 221 | @echo "add the include paths editing the var USER_CFLAGS" 222 | @echo at the beginning of the makefile using the gcc syntax: 223 | @echo -Ipath 224 | @echo 225 | @echo to add addons to your application, edit the addons.make file 226 | @echo in this directory and add the names of the addons you want to 227 | @echo include 228 | @echo 229 | -------------------------------------------------------------------------------- /ProjectionMapping.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 42; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 019C3E4B1372BEF900FFBD84 /* tinyxml.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E441372BEF900FFBD84 /* tinyxml.cpp */; }; 11 | 019C3E4C1372BEF900FFBD84 /* tinyxmlerror.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E461372BEF900FFBD84 /* tinyxmlerror.cpp */; }; 12 | 019C3E4D1372BEF900FFBD84 /* tinyxmlparser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E471372BEF900FFBD84 /* tinyxmlparser.cpp */; }; 13 | 019C3E4E1372BEF900FFBD84 /* ofxXmlSettings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E491372BEF900FFBD84 /* ofxXmlSettings.cpp */; }; 14 | 019C3E6B1372BEF900FFBD84 /* ofxMSAInteractiveObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E671372BEF900FFBD84 /* ofxMSAInteractiveObject.cpp */; }; 15 | 019C3EA11372BEF900FFBD84 /* ofxSimpleGuiButton.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E7D1372BEF900FFBD84 /* ofxSimpleGuiButton.cpp */; }; 16 | 019C3EA21372BEF900FFBD84 /* ofxSimpleGuiColorPicker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E7F1372BEF900FFBD84 /* ofxSimpleGuiColorPicker.cpp */; }; 17 | 019C3EA31372BEF900FFBD84 /* ofxSimpleGuiComboBox.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E811372BEF900FFBD84 /* ofxSimpleGuiComboBox.cpp */; }; 18 | 019C3EA41372BEF900FFBD84 /* ofxSimpleGuiContent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E831372BEF900FFBD84 /* ofxSimpleGuiContent.cpp */; }; 19 | 019C3EA51372BEF900FFBD84 /* ofxSimpleGuiFPSCounter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E851372BEF900FFBD84 /* ofxSimpleGuiFPSCounter.cpp */; }; 20 | 019C3EA61372BEF900FFBD84 /* ofxSimpleGuiMovieSlider.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E871372BEF900FFBD84 /* ofxSimpleGuiMovieSlider.cpp */; }; 21 | 019C3EA71372BEF900FFBD84 /* ofxSimpleGuiQuadWarp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E891372BEF900FFBD84 /* ofxSimpleGuiQuadWarp.cpp */; }; 22 | 019C3EA81372BEF900FFBD84 /* ofxSimpleGuiSlider2d.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E8B1372BEF900FFBD84 /* ofxSimpleGuiSlider2d.cpp */; }; 23 | 019C3EA91372BEF900FFBD84 /* ofxSimpleGuiTitle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E901372BEF900FFBD84 /* ofxSimpleGuiTitle.cpp */; }; 24 | 019C3EAA1372BEF900FFBD84 /* ofxSimpleGuiToggle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E921372BEF900FFBD84 /* ofxSimpleGuiToggle.cpp */; }; 25 | 019C3EAB1372BEF900FFBD84 /* ofxSimpleGuiConfig.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E941372BEF900FFBD84 /* ofxSimpleGuiConfig.cpp */; }; 26 | 019C3EAC1372BEF900FFBD84 /* ofxSimpleGuiControl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E961372BEF900FFBD84 /* ofxSimpleGuiControl.cpp */; }; 27 | 019C3EAD1372BEF900FFBD84 /* ofxSimpleGuiPage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E991372BEF900FFBD84 /* ofxSimpleGuiPage.cpp */; }; 28 | 019C3EAE1372BEF900FFBD84 /* ofxSimpleGuiToo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E9B1372BEF900FFBD84 /* ofxSimpleGuiToo.cpp */; }; 29 | 019C3EAF1372BEF900FFBD84 /* ofxSimpleGuiValueControl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3E9D1372BEF900FFBD84 /* ofxSimpleGuiValueControl.cpp */; }; 30 | 019C3EB91372BEF900FFBD84 /* quad.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 019C3EB71372BEF900FFBD84 /* quad.cpp */; }; 31 | E45BE0AA0E8CC67C009D7055 /* GLee.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE0A90E8CC67C009D7055 /* GLee.a */; }; 32 | E45BE2E40E8CC69C009D7055 /* rtAudio.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE2E30E8CC69C009D7055 /* rtAudio.a */; }; 33 | E45BE97B0E8CC7DD009D7055 /* AGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9710E8CC7DD009D7055 /* AGL.framework */; }; 34 | E45BE97C0E8CC7DD009D7055 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */; }; 35 | E45BE97D0E8CC7DD009D7055 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */; }; 36 | E45BE97E0E8CC7DD009D7055 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9740E8CC7DD009D7055 /* Carbon.framework */; }; 37 | E45BE97F0E8CC7DD009D7055 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */; }; 38 | E45BE9800E8CC7DD009D7055 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */; }; 39 | E45BE9810E8CC7DD009D7055 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9770E8CC7DD009D7055 /* CoreServices.framework */; }; 40 | E45BE9830E8CC7DD009D7055 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE9790E8CC7DD009D7055 /* OpenGL.framework */; }; 41 | E45BE9840E8CC7DD009D7055 /* QuickTime.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */; }; 42 | E4B69E200A3A1BDC003C02F2 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4B69E1D0A3A1BDC003C02F2 /* main.cpp */; }; 43 | E4B69E210A3A1BDC003C02F2 /* testApp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4B69E1E0A3A1BDC003C02F2 /* testApp.cpp */; }; 44 | E4C2422B10CC554B004149E2 /* openFrameworks.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2421E10CC549C004149E2 /* openFrameworks.a */; }; 45 | E4C2424710CC5A17004149E2 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424410CC5A17004149E2 /* AppKit.framework */; }; 46 | E4C2424810CC5A17004149E2 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424510CC5A17004149E2 /* Cocoa.framework */; }; 47 | E4C2424910CC5A17004149E2 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2424610CC5A17004149E2 /* IOKit.framework */; }; 48 | E4C2426610CC5A78004149E2 /* GLUT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2425F10CC5A78004149E2 /* GLUT.framework */; }; 49 | E4C2426B10CC5AA6004149E2 /* GLUT.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = E4C2425F10CC5A78004149E2 /* GLUT.framework */; }; 50 | E4C2427F10CC5B66004149E2 /* CppUnit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2427A10CC5B66004149E2 /* CppUnit.a */; }; 51 | E4C2428010CC5B66004149E2 /* PocoFoundation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2427B10CC5B66004149E2 /* PocoFoundation.a */; }; 52 | E4C2428110CC5B66004149E2 /* PocoNet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2427C10CC5B66004149E2 /* PocoNet.a */; }; 53 | E4C2428210CC5B66004149E2 /* PocoUtil.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2427D10CC5B66004149E2 /* PocoUtil.a */; }; 54 | E4C2428310CC5B66004149E2 /* PocoXML.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2427E10CC5B66004149E2 /* PocoXML.a */; }; 55 | E4C2429410CC5C38004149E2 /* freetype.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C2429310CC5C38004149E2 /* freetype.a */; }; 56 | E4C242CD10CC650E004149E2 /* libfmodex.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C242CC10CC650E004149E2 /* libfmodex.dylib */; }; 57 | E4C2443910CC7693004149E2 /* openFrameworks-Info.plist in CopyFiles */ = {isa = PBXBuildFile; fileRef = E4B6FCAD0C3E899E008CF71C /* openFrameworks-Info.plist */; }; 58 | E4C246DA10CCAE22004149E2 /* freeimage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E4C246D910CCAE22004149E2 /* freeimage.a */; }; 59 | /* End PBXBuildFile section */ 60 | 61 | /* Begin PBXContainerItemProxy section */ 62 | E4C2421D10CC549C004149E2 /* PBXContainerItemProxy */ = { 63 | isa = PBXContainerItemProxy; 64 | containerPortal = E4C2421610CC549C004149E2 /* openFrameworksLib.xcodeproj */; 65 | proxyType = 2; 66 | remoteGlobalIDString = E4B27C1510CBEB8E00536013; 67 | remoteInfo = openFrameworks; 68 | }; 69 | E4C2422710CC54DA004149E2 /* PBXContainerItemProxy */ = { 70 | isa = PBXContainerItemProxy; 71 | containerPortal = E4C2421610CC549C004149E2 /* openFrameworksLib.xcodeproj */; 72 | proxyType = 1; 73 | remoteGlobalIDString = E4B27C1410CBEB8E00536013; 74 | remoteInfo = openFrameworks; 75 | }; 76 | /* End PBXContainerItemProxy section */ 77 | 78 | /* Begin PBXCopyFilesBuildPhase section */ 79 | E4C2427710CC5ABF004149E2 /* CopyFiles */ = { 80 | isa = PBXCopyFilesBuildPhase; 81 | buildActionMask = 2147483647; 82 | dstPath = ""; 83 | dstSubfolderSpec = 10; 84 | files = ( 85 | E4C2426B10CC5AA6004149E2 /* GLUT.framework in CopyFiles */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | E4C2444710CC769B004149E2 /* CopyFiles */ = { 90 | isa = PBXCopyFilesBuildPhase; 91 | buildActionMask = 2147483647; 92 | dstPath = ""; 93 | dstSubfolderSpec = 7; 94 | files = ( 95 | E4C2443910CC7693004149E2 /* openFrameworks-Info.plist in CopyFiles */, 96 | ); 97 | runOnlyForDeploymentPostprocessing = 0; 98 | }; 99 | /* End PBXCopyFilesBuildPhase section */ 100 | 101 | /* Begin PBXFileReference section */ 102 | 019C3E421372BEF900FFBD84 /* install.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = install.xml; sourceTree = ""; }; 103 | 019C3E441372BEF900FFBD84 /* tinyxml.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = tinyxml.cpp; sourceTree = ""; }; 104 | 019C3E451372BEF900FFBD84 /* tinyxml.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tinyxml.h; sourceTree = ""; }; 105 | 019C3E461372BEF900FFBD84 /* tinyxmlerror.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = tinyxmlerror.cpp; sourceTree = ""; }; 106 | 019C3E471372BEF900FFBD84 /* tinyxmlparser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = tinyxmlparser.cpp; sourceTree = ""; }; 107 | 019C3E491372BEF900FFBD84 /* ofxXmlSettings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxXmlSettings.cpp; sourceTree = ""; }; 108 | 019C3E4A1372BEF900FFBD84 /* ofxXmlSettings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxXmlSettings.h; sourceTree = ""; }; 109 | 019C3E5B1372BEF900FFBD84 /* changelog.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = changelog.txt; sourceTree = ""; }; 110 | 019C3E641372BEF900FFBD84 /* install.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = install.xml; sourceTree = ""; }; 111 | 019C3E651372BEF900FFBD84 /* LICENSE.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE.txt; sourceTree = ""; }; 112 | 019C3E671372BEF900FFBD84 /* ofxMSAInteractiveObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxMSAInteractiveObject.cpp; sourceTree = ""; }; 113 | 019C3E681372BEF900FFBD84 /* ofxMSAInteractiveObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxMSAInteractiveObject.h; sourceTree = ""; }; 114 | 019C3E711372BEF900FFBD84 /* changelog.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = changelog.txt; sourceTree = ""; }; 115 | 019C3E791372BEF900FFBD84 /* install.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = install.xml; sourceTree = ""; }; 116 | 019C3E7A1372BEF900FFBD84 /* LICENSE.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE.txt; sourceTree = ""; }; 117 | 019C3E7D1372BEF900FFBD84 /* ofxSimpleGuiButton.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiButton.cpp; sourceTree = ""; }; 118 | 019C3E7E1372BEF900FFBD84 /* ofxSimpleGuiButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiButton.h; sourceTree = ""; }; 119 | 019C3E7F1372BEF900FFBD84 /* ofxSimpleGuiColorPicker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiColorPicker.cpp; sourceTree = ""; }; 120 | 019C3E801372BEF900FFBD84 /* ofxSimpleGuiColorPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiColorPicker.h; sourceTree = ""; }; 121 | 019C3E811372BEF900FFBD84 /* ofxSimpleGuiComboBox.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiComboBox.cpp; sourceTree = ""; }; 122 | 019C3E821372BEF900FFBD84 /* ofxSimpleGuiComboBox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiComboBox.h; sourceTree = ""; }; 123 | 019C3E831372BEF900FFBD84 /* ofxSimpleGuiContent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiContent.cpp; sourceTree = ""; }; 124 | 019C3E841372BEF900FFBD84 /* ofxSimpleGuiContent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiContent.h; sourceTree = ""; }; 125 | 019C3E851372BEF900FFBD84 /* ofxSimpleGuiFPSCounter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiFPSCounter.cpp; sourceTree = ""; }; 126 | 019C3E861372BEF900FFBD84 /* ofxSimpleGuiFPSCounter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiFPSCounter.h; sourceTree = ""; }; 127 | 019C3E871372BEF900FFBD84 /* ofxSimpleGuiMovieSlider.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiMovieSlider.cpp; sourceTree = ""; }; 128 | 019C3E881372BEF900FFBD84 /* ofxSimpleGuiMovieSlider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiMovieSlider.h; sourceTree = ""; }; 129 | 019C3E891372BEF900FFBD84 /* ofxSimpleGuiQuadWarp.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiQuadWarp.cpp; sourceTree = ""; }; 130 | 019C3E8A1372BEF900FFBD84 /* ofxSimpleGuiQuadWarp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiQuadWarp.h; sourceTree = ""; }; 131 | 019C3E8B1372BEF900FFBD84 /* ofxSimpleGuiSlider2d.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiSlider2d.cpp; sourceTree = ""; }; 132 | 019C3E8C1372BEF900FFBD84 /* ofxSimpleGuiSlider2d.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiSlider2d.h; sourceTree = ""; }; 133 | 019C3E8D1372BEF900FFBD84 /* ofxSimpleGuiSliderBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiSliderBase.h; sourceTree = ""; }; 134 | 019C3E8E1372BEF900FFBD84 /* ofxSimpleGuiSliderFloat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiSliderFloat.h; sourceTree = ""; }; 135 | 019C3E8F1372BEF900FFBD84 /* ofxSimpleGuiSliderInt.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiSliderInt.h; sourceTree = ""; }; 136 | 019C3E901372BEF900FFBD84 /* ofxSimpleGuiTitle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiTitle.cpp; sourceTree = ""; }; 137 | 019C3E911372BEF900FFBD84 /* ofxSimpleGuiTitle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiTitle.h; sourceTree = ""; }; 138 | 019C3E921372BEF900FFBD84 /* ofxSimpleGuiToggle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiToggle.cpp; sourceTree = ""; }; 139 | 019C3E931372BEF900FFBD84 /* ofxSimpleGuiToggle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiToggle.h; sourceTree = ""; }; 140 | 019C3E941372BEF900FFBD84 /* ofxSimpleGuiConfig.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiConfig.cpp; sourceTree = ""; }; 141 | 019C3E951372BEF900FFBD84 /* ofxSimpleGuiConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiConfig.h; sourceTree = ""; }; 142 | 019C3E961372BEF900FFBD84 /* ofxSimpleGuiControl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiControl.cpp; sourceTree = ""; }; 143 | 019C3E971372BEF900FFBD84 /* ofxSimpleGuiControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiControl.h; sourceTree = ""; }; 144 | 019C3E981372BEF900FFBD84 /* ofxSimpleGuiIncludes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiIncludes.h; sourceTree = ""; }; 145 | 019C3E991372BEF900FFBD84 /* ofxSimpleGuiPage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiPage.cpp; sourceTree = ""; }; 146 | 019C3E9A1372BEF900FFBD84 /* ofxSimpleGuiPage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiPage.h; sourceTree = ""; }; 147 | 019C3E9B1372BEF900FFBD84 /* ofxSimpleGuiToo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiToo.cpp; sourceTree = ""; }; 148 | 019C3E9C1372BEF900FFBD84 /* ofxSimpleGuiToo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiToo.h; sourceTree = ""; }; 149 | 019C3E9D1372BEF900FFBD84 /* ofxSimpleGuiValueControl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ofxSimpleGuiValueControl.cpp; sourceTree = ""; }; 150 | 019C3E9E1372BEF900FFBD84 /* ofxSimpleGuiValueControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxSimpleGuiValueControl.h; sourceTree = ""; }; 151 | 019C3EB61372BEF900FFBD84 /* ball.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ball.h; sourceTree = ""; }; 152 | 019C3EB71372BEF900FFBD84 /* quad.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = quad.cpp; sourceTree = ""; }; 153 | 019C3EB81372BEF900FFBD84 /* quad.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = quad.h; sourceTree = ""; }; 154 | E45BE0390E8CC647009D7055 /* FreeImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FreeImage.h; path = ../../../libs/freeimage/include/FreeImage.h; sourceTree = SOURCE_ROOT; }; 155 | E45BE03F0E8CC650009D7055 /* fmod.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fmod.h; path = ../../../libs/fmodex/include/fmod.h; sourceTree = SOURCE_ROOT; }; 156 | E45BE0400E8CC650009D7055 /* fmod.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = fmod.hpp; path = ../../../libs/fmodex/include/fmod.hpp; sourceTree = SOURCE_ROOT; }; 157 | E45BE0410E8CC650009D7055 /* fmod_codec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fmod_codec.h; path = ../../../libs/fmodex/include/fmod_codec.h; sourceTree = SOURCE_ROOT; }; 158 | E45BE0420E8CC650009D7055 /* fmod_dsp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fmod_dsp.h; path = ../../../libs/fmodex/include/fmod_dsp.h; sourceTree = SOURCE_ROOT; }; 159 | E45BE0430E8CC650009D7055 /* fmod_errors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fmod_errors.h; path = ../../../libs/fmodex/include/fmod_errors.h; sourceTree = SOURCE_ROOT; }; 160 | E45BE0440E8CC650009D7055 /* fmod_output.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fmod_output.h; path = ../../../libs/fmodex/include/fmod_output.h; sourceTree = SOURCE_ROOT; }; 161 | E45BE0A70E8CC67C009D7055 /* GLee.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GLee.h; path = ../../../libs/GLee/include/GLee.h; sourceTree = SOURCE_ROOT; }; 162 | E45BE0A90E8CC67C009D7055 /* GLee.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = GLee.a; path = ../../../libs/GLee/lib/osx/GLee.a; sourceTree = SOURCE_ROOT; }; 163 | E45BE2E00E8CC69C009D7055 /* RtAudio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RtAudio.h; path = ../../../libs/rtAudio/include/RtAudio.h; sourceTree = SOURCE_ROOT; }; 164 | E45BE2E10E8CC69C009D7055 /* RtError.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RtError.h; path = ../../../libs/rtAudio/include/RtError.h; sourceTree = SOURCE_ROOT; }; 165 | E45BE2E30E8CC69C009D7055 /* rtAudio.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = rtAudio.a; path = ../../../libs/rtAudio/lib/osx/rtAudio.a; sourceTree = SOURCE_ROOT; }; 166 | E45BE9710E8CC7DD009D7055 /* AGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AGL.framework; path = /System/Library/Frameworks/AGL.framework; sourceTree = ""; }; 167 | E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = /System/Library/Frameworks/ApplicationServices.framework; sourceTree = ""; }; 168 | E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = ""; }; 169 | E45BE9740E8CC7DD009D7055 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = ""; }; 170 | E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = ""; }; 171 | E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = ""; }; 172 | E45BE9770E8CC7DD009D7055 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = ""; }; 173 | E45BE9790E8CC7DD009D7055 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = ""; }; 174 | E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = ""; }; 175 | E4B69B5B0A3A1756003C02F2 /* emptyExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = emptyExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 176 | E4B69E1D0A3A1BDC003C02F2 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = main.cpp; path = src/main.cpp; sourceTree = SOURCE_ROOT; }; 177 | E4B69E1E0A3A1BDC003C02F2 /* testApp.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = testApp.cpp; path = src/testApp.cpp; sourceTree = SOURCE_ROOT; }; 178 | E4B69E1F0A3A1BDC003C02F2 /* testApp.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = testApp.h; path = src/testApp.h; sourceTree = SOURCE_ROOT; }; 179 | E4B6FCAD0C3E899E008CF71C /* openFrameworks-Info.plist */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.plist.xml; path = "openFrameworks-Info.plist"; sourceTree = ""; }; 180 | E4C2421610CC549C004149E2 /* openFrameworksLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = openFrameworksLib.xcodeproj; path = ../../../libs/openFrameworksCompiled/project/osx/openFrameworksLib.xcodeproj; sourceTree = SOURCE_ROOT; }; 181 | E4C2424410CC5A17004149E2 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; 182 | E4C2424510CC5A17004149E2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; 183 | E4C2424610CC5A17004149E2 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; 184 | E4C2425F10CC5A78004149E2 /* GLUT.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLUT.framework; path = ../../../libs/glut/lib/osx/GLUT.framework; sourceTree = SOURCE_ROOT; }; 185 | E4C2427A10CC5B66004149E2 /* CppUnit.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = CppUnit.a; path = ../../../libs/poco/lib/osx/CppUnit.a; sourceTree = SOURCE_ROOT; }; 186 | E4C2427B10CC5B66004149E2 /* PocoFoundation.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = PocoFoundation.a; path = ../../../libs/poco/lib/osx/PocoFoundation.a; sourceTree = SOURCE_ROOT; }; 187 | E4C2427C10CC5B66004149E2 /* PocoNet.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = PocoNet.a; path = ../../../libs/poco/lib/osx/PocoNet.a; sourceTree = SOURCE_ROOT; }; 188 | E4C2427D10CC5B66004149E2 /* PocoUtil.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = PocoUtil.a; path = ../../../libs/poco/lib/osx/PocoUtil.a; sourceTree = SOURCE_ROOT; }; 189 | E4C2427E10CC5B66004149E2 /* PocoXML.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = PocoXML.a; path = ../../../libs/poco/lib/osx/PocoXML.a; sourceTree = SOURCE_ROOT; }; 190 | E4C2429310CC5C38004149E2 /* freetype.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = freetype.a; path = ../../../libs/freetype/lib/osx/freetype.a; sourceTree = SOURCE_ROOT; }; 191 | E4C242CC10CC650E004149E2 /* libfmodex.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libfmodex.dylib; path = ../../../libs/fmodex/lib/osx/libfmodex.dylib; sourceTree = SOURCE_ROOT; }; 192 | E4C246D910CCAE22004149E2 /* freeimage.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = freeimage.a; path = ../../../libs/FreeImage/lib/osx/freeimage.a; sourceTree = SOURCE_ROOT; }; 193 | /* End PBXFileReference section */ 194 | 195 | /* Begin PBXFrameworksBuildPhase section */ 196 | E4B69B590A3A1756003C02F2 /* Frameworks */ = { 197 | isa = PBXFrameworksBuildPhase; 198 | buildActionMask = 2147483647; 199 | files = ( 200 | E4C2422B10CC554B004149E2 /* openFrameworks.a in Frameworks */, 201 | E45BE0AA0E8CC67C009D7055 /* GLee.a in Frameworks */, 202 | E45BE2E40E8CC69C009D7055 /* rtAudio.a in Frameworks */, 203 | E45BE97B0E8CC7DD009D7055 /* AGL.framework in Frameworks */, 204 | E45BE97C0E8CC7DD009D7055 /* ApplicationServices.framework in Frameworks */, 205 | E45BE97D0E8CC7DD009D7055 /* AudioToolbox.framework in Frameworks */, 206 | E45BE97E0E8CC7DD009D7055 /* Carbon.framework in Frameworks */, 207 | E45BE97F0E8CC7DD009D7055 /* CoreAudio.framework in Frameworks */, 208 | E45BE9800E8CC7DD009D7055 /* CoreFoundation.framework in Frameworks */, 209 | E45BE9810E8CC7DD009D7055 /* CoreServices.framework in Frameworks */, 210 | E45BE9830E8CC7DD009D7055 /* OpenGL.framework in Frameworks */, 211 | E45BE9840E8CC7DD009D7055 /* QuickTime.framework in Frameworks */, 212 | E4C2424710CC5A17004149E2 /* AppKit.framework in Frameworks */, 213 | E4C2424810CC5A17004149E2 /* Cocoa.framework in Frameworks */, 214 | E4C2424910CC5A17004149E2 /* IOKit.framework in Frameworks */, 215 | E4C2426610CC5A78004149E2 /* GLUT.framework in Frameworks */, 216 | E4C2427F10CC5B66004149E2 /* CppUnit.a in Frameworks */, 217 | E4C2428010CC5B66004149E2 /* PocoFoundation.a in Frameworks */, 218 | E4C2428110CC5B66004149E2 /* PocoNet.a in Frameworks */, 219 | E4C2428210CC5B66004149E2 /* PocoUtil.a in Frameworks */, 220 | E4C2428310CC5B66004149E2 /* PocoXML.a in Frameworks */, 221 | E4C2429410CC5C38004149E2 /* freetype.a in Frameworks */, 222 | E4C242CD10CC650E004149E2 /* libfmodex.dylib in Frameworks */, 223 | E4C246DA10CCAE22004149E2 /* freeimage.a in Frameworks */, 224 | ); 225 | runOnlyForDeploymentPostprocessing = 0; 226 | }; 227 | /* End PBXFrameworksBuildPhase section */ 228 | 229 | /* Begin PBXGroup section */ 230 | 019C3E411372BEF900FFBD84 /* ofxXmlSettings */ = { 231 | isa = PBXGroup; 232 | children = ( 233 | 019C3E421372BEF900FFBD84 /* install.xml */, 234 | 019C3E431372BEF900FFBD84 /* libs */, 235 | 019C3E481372BEF900FFBD84 /* src */, 236 | ); 237 | name = ofxXmlSettings; 238 | path = ../../../addons/ofxXmlSettings; 239 | sourceTree = SOURCE_ROOT; 240 | }; 241 | 019C3E431372BEF900FFBD84 /* libs */ = { 242 | isa = PBXGroup; 243 | children = ( 244 | 019C3E441372BEF900FFBD84 /* tinyxml.cpp */, 245 | 019C3E451372BEF900FFBD84 /* tinyxml.h */, 246 | 019C3E461372BEF900FFBD84 /* tinyxmlerror.cpp */, 247 | 019C3E471372BEF900FFBD84 /* tinyxmlparser.cpp */, 248 | ); 249 | path = libs; 250 | sourceTree = ""; 251 | }; 252 | 019C3E481372BEF900FFBD84 /* src */ = { 253 | isa = PBXGroup; 254 | children = ( 255 | 019C3E491372BEF900FFBD84 /* ofxXmlSettings.cpp */, 256 | 019C3E4A1372BEF900FFBD84 /* ofxXmlSettings.h */, 257 | ); 258 | path = src; 259 | sourceTree = ""; 260 | }; 261 | 019C3E5A1372BEF900FFBD84 /* ofxMSAInteractiveObject */ = { 262 | isa = PBXGroup; 263 | children = ( 264 | 019C3E5B1372BEF900FFBD84 /* changelog.txt */, 265 | 019C3E641372BEF900FFBD84 /* install.xml */, 266 | 019C3E651372BEF900FFBD84 /* LICENSE.txt */, 267 | 019C3E661372BEF900FFBD84 /* src */, 268 | ); 269 | name = ofxMSAInteractiveObject; 270 | path = ../../../addons/msalibs/ofxMSAInteractiveObject; 271 | sourceTree = SOURCE_ROOT; 272 | }; 273 | 019C3E661372BEF900FFBD84 /* src */ = { 274 | isa = PBXGroup; 275 | children = ( 276 | 019C3E671372BEF900FFBD84 /* ofxMSAInteractiveObject.cpp */, 277 | 019C3E681372BEF900FFBD84 /* ofxMSAInteractiveObject.h */, 278 | ); 279 | path = src; 280 | sourceTree = ""; 281 | }; 282 | 019C3E701372BEF900FFBD84 /* ofxSimpleGuiToo */ = { 283 | isa = PBXGroup; 284 | children = ( 285 | 019C3E711372BEF900FFBD84 /* changelog.txt */, 286 | 019C3E791372BEF900FFBD84 /* install.xml */, 287 | 019C3E7A1372BEF900FFBD84 /* LICENSE.txt */, 288 | 019C3E7B1372BEF900FFBD84 /* src */, 289 | ); 290 | name = ofxSimpleGuiToo; 291 | path = ../../../addons/msalibs/ofxSimpleGuiToo; 292 | sourceTree = SOURCE_ROOT; 293 | }; 294 | 019C3E7B1372BEF900FFBD84 /* src */ = { 295 | isa = PBXGroup; 296 | children = ( 297 | 019C3E7C1372BEF900FFBD84 /* Controls */, 298 | 019C3E941372BEF900FFBD84 /* ofxSimpleGuiConfig.cpp */, 299 | 019C3E951372BEF900FFBD84 /* ofxSimpleGuiConfig.h */, 300 | 019C3E961372BEF900FFBD84 /* ofxSimpleGuiControl.cpp */, 301 | 019C3E971372BEF900FFBD84 /* ofxSimpleGuiControl.h */, 302 | 019C3E981372BEF900FFBD84 /* ofxSimpleGuiIncludes.h */, 303 | 019C3E991372BEF900FFBD84 /* ofxSimpleGuiPage.cpp */, 304 | 019C3E9A1372BEF900FFBD84 /* ofxSimpleGuiPage.h */, 305 | 019C3E9B1372BEF900FFBD84 /* ofxSimpleGuiToo.cpp */, 306 | 019C3E9C1372BEF900FFBD84 /* ofxSimpleGuiToo.h */, 307 | 019C3E9D1372BEF900FFBD84 /* ofxSimpleGuiValueControl.cpp */, 308 | 019C3E9E1372BEF900FFBD84 /* ofxSimpleGuiValueControl.h */, 309 | ); 310 | path = src; 311 | sourceTree = ""; 312 | }; 313 | 019C3E7C1372BEF900FFBD84 /* Controls */ = { 314 | isa = PBXGroup; 315 | children = ( 316 | 019C3E7D1372BEF900FFBD84 /* ofxSimpleGuiButton.cpp */, 317 | 019C3E7E1372BEF900FFBD84 /* ofxSimpleGuiButton.h */, 318 | 019C3E7F1372BEF900FFBD84 /* ofxSimpleGuiColorPicker.cpp */, 319 | 019C3E801372BEF900FFBD84 /* ofxSimpleGuiColorPicker.h */, 320 | 019C3E811372BEF900FFBD84 /* ofxSimpleGuiComboBox.cpp */, 321 | 019C3E821372BEF900FFBD84 /* ofxSimpleGuiComboBox.h */, 322 | 019C3E831372BEF900FFBD84 /* ofxSimpleGuiContent.cpp */, 323 | 019C3E841372BEF900FFBD84 /* ofxSimpleGuiContent.h */, 324 | 019C3E851372BEF900FFBD84 /* ofxSimpleGuiFPSCounter.cpp */, 325 | 019C3E861372BEF900FFBD84 /* ofxSimpleGuiFPSCounter.h */, 326 | 019C3E871372BEF900FFBD84 /* ofxSimpleGuiMovieSlider.cpp */, 327 | 019C3E881372BEF900FFBD84 /* ofxSimpleGuiMovieSlider.h */, 328 | 019C3E891372BEF900FFBD84 /* ofxSimpleGuiQuadWarp.cpp */, 329 | 019C3E8A1372BEF900FFBD84 /* ofxSimpleGuiQuadWarp.h */, 330 | 019C3E8B1372BEF900FFBD84 /* ofxSimpleGuiSlider2d.cpp */, 331 | 019C3E8C1372BEF900FFBD84 /* ofxSimpleGuiSlider2d.h */, 332 | 019C3E8D1372BEF900FFBD84 /* ofxSimpleGuiSliderBase.h */, 333 | 019C3E8E1372BEF900FFBD84 /* ofxSimpleGuiSliderFloat.h */, 334 | 019C3E8F1372BEF900FFBD84 /* ofxSimpleGuiSliderInt.h */, 335 | 019C3E901372BEF900FFBD84 /* ofxSimpleGuiTitle.cpp */, 336 | 019C3E911372BEF900FFBD84 /* ofxSimpleGuiTitle.h */, 337 | 019C3E921372BEF900FFBD84 /* ofxSimpleGuiToggle.cpp */, 338 | 019C3E931372BEF900FFBD84 /* ofxSimpleGuiToggle.h */, 339 | ); 340 | path = Controls; 341 | sourceTree = ""; 342 | }; 343 | BB4B014C10F69532006C3DED /* addons */ = { 344 | isa = PBXGroup; 345 | children = ( 346 | 019C3E701372BEF900FFBD84 /* ofxSimpleGuiToo */, 347 | 019C3E5A1372BEF900FFBD84 /* ofxMSAInteractiveObject */, 348 | 019C3E411372BEF900FFBD84 /* ofxXmlSettings */, 349 | ); 350 | name = addons; 351 | sourceTree = ""; 352 | }; 353 | E45BE0360E8CC5DE009D7055 /* libs */ = { 354 | isa = PBXGroup; 355 | children = ( 356 | E45BEED60E8CCB34009D7055 /* core */, 357 | ); 358 | name = libs; 359 | sourceTree = ""; 360 | }; 361 | E45BE0370E8CC647009D7055 /* freeimage */ = { 362 | isa = PBXGroup; 363 | children = ( 364 | E4C246D810CCAE22004149E2 /* osx */, 365 | E45BE0380E8CC647009D7055 /* include */, 366 | ); 367 | name = freeimage; 368 | path = ../../../libs/freeimage; 369 | sourceTree = SOURCE_ROOT; 370 | }; 371 | E45BE0380E8CC647009D7055 /* include */ = { 372 | isa = PBXGroup; 373 | children = ( 374 | E45BE0390E8CC647009D7055 /* FreeImage.h */, 375 | ); 376 | name = include; 377 | path = ../../../libs/freeimage/include; 378 | sourceTree = SOURCE_ROOT; 379 | }; 380 | E45BE03D0E8CC650009D7055 /* fmodex */ = { 381 | isa = PBXGroup; 382 | children = ( 383 | E45BE03E0E8CC650009D7055 /* inc */, 384 | E4C2428E10CC5C18004149E2 /* osx */, 385 | ); 386 | name = fmodex; 387 | path = ../../../libs/fmodex; 388 | sourceTree = SOURCE_ROOT; 389 | }; 390 | E45BE03E0E8CC650009D7055 /* inc */ = { 391 | isa = PBXGroup; 392 | children = ( 393 | E45BE03F0E8CC650009D7055 /* fmod.h */, 394 | E45BE0400E8CC650009D7055 /* fmod.hpp */, 395 | E45BE0410E8CC650009D7055 /* fmod_codec.h */, 396 | E45BE0420E8CC650009D7055 /* fmod_dsp.h */, 397 | E45BE0430E8CC650009D7055 /* fmod_errors.h */, 398 | E45BE0440E8CC650009D7055 /* fmod_output.h */, 399 | ); 400 | name = inc; 401 | path = ../../../libs/fmodex/include; 402 | sourceTree = SOURCE_ROOT; 403 | }; 404 | E45BE0480E8CC657009D7055 /* core libraries */ = { 405 | isa = PBXGroup; 406 | children = ( 407 | E4C2425B10CC5A78004149E2 /* glut */, 408 | E45BEC7B0E8CC911009D7055 /* poco */, 409 | E45BE2D50E8CC69C009D7055 /* rtAudio */, 410 | E45BE0A50E8CC67C009D7055 /* GLee */, 411 | E45BE0490E8CC676009D7055 /* freetype */, 412 | E45BE03D0E8CC650009D7055 /* fmodex */, 413 | E45BE0370E8CC647009D7055 /* freeimage */, 414 | ); 415 | name = "core libraries"; 416 | sourceTree = ""; 417 | }; 418 | E45BE0490E8CC676009D7055 /* freetype */ = { 419 | isa = PBXGroup; 420 | children = ( 421 | E4C2429210CC5C38004149E2 /* osx */, 422 | ); 423 | name = freetype; 424 | path = ../../../libs/freetype; 425 | sourceTree = SOURCE_ROOT; 426 | }; 427 | E45BE0A50E8CC67C009D7055 /* GLee */ = { 428 | isa = PBXGroup; 429 | children = ( 430 | E45BE0A60E8CC67C009D7055 /* include */, 431 | E45BE0A80E8CC67C009D7055 /* lib */, 432 | ); 433 | name = GLee; 434 | path = ../../../libs/GLee; 435 | sourceTree = SOURCE_ROOT; 436 | }; 437 | E45BE0A60E8CC67C009D7055 /* include */ = { 438 | isa = PBXGroup; 439 | children = ( 440 | E45BE0A70E8CC67C009D7055 /* GLee.h */, 441 | ); 442 | name = include; 443 | path = ../../../libs/GLee/include; 444 | sourceTree = SOURCE_ROOT; 445 | }; 446 | E45BE0A80E8CC67C009D7055 /* lib */ = { 447 | isa = PBXGroup; 448 | children = ( 449 | E45BE0A90E8CC67C009D7055 /* GLee.a */, 450 | ); 451 | name = lib; 452 | path = ../../../libs/GLee/lib/osx; 453 | sourceTree = SOURCE_ROOT; 454 | }; 455 | E45BE2D50E8CC69C009D7055 /* rtAudio */ = { 456 | isa = PBXGroup; 457 | children = ( 458 | E45BE2D60E8CC69C009D7055 /* include */, 459 | E45BE2E20E8CC69C009D7055 /* lib */, 460 | ); 461 | name = rtAudio; 462 | path = ../../../libs/rtAudio; 463 | sourceTree = SOURCE_ROOT; 464 | }; 465 | E45BE2D60E8CC69C009D7055 /* include */ = { 466 | isa = PBXGroup; 467 | children = ( 468 | E45BE2D70E8CC69C009D7055 /* asio */, 469 | E45BE2E00E8CC69C009D7055 /* RtAudio.h */, 470 | E45BE2E10E8CC69C009D7055 /* RtError.h */, 471 | ); 472 | name = include; 473 | path = ../../../libs/rtAudio/include; 474 | sourceTree = SOURCE_ROOT; 475 | }; 476 | E45BE2D70E8CC69C009D7055 /* asio */ = { 477 | isa = PBXGroup; 478 | children = ( 479 | ); 480 | name = asio; 481 | path = ../../../libs/rtAudio/include/asio; 482 | sourceTree = SOURCE_ROOT; 483 | }; 484 | E45BE2E20E8CC69C009D7055 /* lib */ = { 485 | isa = PBXGroup; 486 | children = ( 487 | E45BE2E30E8CC69C009D7055 /* rtAudio.a */, 488 | ); 489 | name = lib; 490 | path = ../../../libs/rtAudio/lib/osx; 491 | sourceTree = SOURCE_ROOT; 492 | }; 493 | E45BE5980E8CC70C009D7055 /* core frameworks */ = { 494 | isa = PBXGroup; 495 | children = ( 496 | E4C2424410CC5A17004149E2 /* AppKit.framework */, 497 | E4C2424510CC5A17004149E2 /* Cocoa.framework */, 498 | E4C2424610CC5A17004149E2 /* IOKit.framework */, 499 | E45BE9710E8CC7DD009D7055 /* AGL.framework */, 500 | E45BE9720E8CC7DD009D7055 /* ApplicationServices.framework */, 501 | E45BE9730E8CC7DD009D7055 /* AudioToolbox.framework */, 502 | E45BE9740E8CC7DD009D7055 /* Carbon.framework */, 503 | E45BE9750E8CC7DD009D7055 /* CoreAudio.framework */, 504 | E45BE9760E8CC7DD009D7055 /* CoreFoundation.framework */, 505 | E45BE9770E8CC7DD009D7055 /* CoreServices.framework */, 506 | E45BE9790E8CC7DD009D7055 /* OpenGL.framework */, 507 | E45BE97A0E8CC7DD009D7055 /* QuickTime.framework */, 508 | ); 509 | name = "core frameworks"; 510 | sourceTree = ""; 511 | }; 512 | E45BEC7B0E8CC911009D7055 /* poco */ = { 513 | isa = PBXGroup; 514 | children = ( 515 | E4C2427910CC5B66004149E2 /* osx */, 516 | ); 517 | name = poco; 518 | path = ../../../libs/poco; 519 | sourceTree = SOURCE_ROOT; 520 | }; 521 | E45BEED60E8CCB34009D7055 /* core */ = { 522 | isa = PBXGroup; 523 | children = ( 524 | E45BE0480E8CC657009D7055 /* core libraries */, 525 | E45BE5980E8CC70C009D7055 /* core frameworks */, 526 | ); 527 | name = core; 528 | sourceTree = ""; 529 | }; 530 | E4B69B4A0A3A1720003C02F2 = { 531 | isa = PBXGroup; 532 | children = ( 533 | E4B69B5B0A3A1756003C02F2 /* emptyExample.app */, 534 | E4B6FCAD0C3E899E008CF71C /* openFrameworks-Info.plist */, 535 | E4B69E1C0A3A1BDC003C02F2 /* src */, 536 | E4C2422310CC54B6004149E2 /* openFrameworks */, 537 | BB4B014C10F69532006C3DED /* addons */, 538 | E45BE0360E8CC5DE009D7055 /* libs */, 539 | ); 540 | sourceTree = ""; 541 | }; 542 | E4B69E1C0A3A1BDC003C02F2 /* src */ = { 543 | isa = PBXGroup; 544 | children = ( 545 | 019C3EB61372BEF900FFBD84 /* ball.h */, 546 | 019C3EB71372BEF900FFBD84 /* quad.cpp */, 547 | 019C3EB81372BEF900FFBD84 /* quad.h */, 548 | E4B69E1D0A3A1BDC003C02F2 /* main.cpp */, 549 | E4B69E1E0A3A1BDC003C02F2 /* testApp.cpp */, 550 | E4B69E1F0A3A1BDC003C02F2 /* testApp.h */, 551 | ); 552 | path = src; 553 | sourceTree = SOURCE_ROOT; 554 | }; 555 | E4C2421710CC549C004149E2 /* Products */ = { 556 | isa = PBXGroup; 557 | children = ( 558 | E4C2421E10CC549C004149E2 /* openFrameworks.a */, 559 | ); 560 | name = Products; 561 | sourceTree = ""; 562 | }; 563 | E4C2422310CC54B6004149E2 /* openFrameworks */ = { 564 | isa = PBXGroup; 565 | children = ( 566 | E4C2421610CC549C004149E2 /* openFrameworksLib.xcodeproj */, 567 | ); 568 | name = openFrameworks; 569 | sourceTree = ""; 570 | }; 571 | E4C2425B10CC5A78004149E2 /* glut */ = { 572 | isa = PBXGroup; 573 | children = ( 574 | E4C2425D10CC5A78004149E2 /* lib */, 575 | ); 576 | name = glut; 577 | path = ../../../libs/glut; 578 | sourceTree = SOURCE_ROOT; 579 | }; 580 | E4C2425D10CC5A78004149E2 /* lib */ = { 581 | isa = PBXGroup; 582 | children = ( 583 | E4C2425E10CC5A78004149E2 /* osx */, 584 | ); 585 | name = lib; 586 | path = ../../../libs/glut/lib; 587 | sourceTree = SOURCE_ROOT; 588 | }; 589 | E4C2425E10CC5A78004149E2 /* osx */ = { 590 | isa = PBXGroup; 591 | children = ( 592 | E4C2425F10CC5A78004149E2 /* GLUT.framework */, 593 | ); 594 | name = osx; 595 | path = ../../../libs/glut/lib/osx; 596 | sourceTree = SOURCE_ROOT; 597 | }; 598 | E4C2427910CC5B66004149E2 /* osx */ = { 599 | isa = PBXGroup; 600 | children = ( 601 | E4C2427A10CC5B66004149E2 /* CppUnit.a */, 602 | E4C2427B10CC5B66004149E2 /* PocoFoundation.a */, 603 | E4C2427C10CC5B66004149E2 /* PocoNet.a */, 604 | E4C2427D10CC5B66004149E2 /* PocoUtil.a */, 605 | E4C2427E10CC5B66004149E2 /* PocoXML.a */, 606 | ); 607 | name = osx; 608 | path = ../../../libs/poco/lib/osx; 609 | sourceTree = SOURCE_ROOT; 610 | }; 611 | E4C2428E10CC5C18004149E2 /* osx */ = { 612 | isa = PBXGroup; 613 | children = ( 614 | E4C242CC10CC650E004149E2 /* libfmodex.dylib */, 615 | ); 616 | name = osx; 617 | path = ../../../libs/fmodex/lib/osx; 618 | sourceTree = SOURCE_ROOT; 619 | }; 620 | E4C2429210CC5C38004149E2 /* osx */ = { 621 | isa = PBXGroup; 622 | children = ( 623 | E4C2429310CC5C38004149E2 /* freetype.a */, 624 | ); 625 | name = osx; 626 | path = ../../../libs/freetype/lib/osx; 627 | sourceTree = SOURCE_ROOT; 628 | }; 629 | E4C246D810CCAE22004149E2 /* osx */ = { 630 | isa = PBXGroup; 631 | children = ( 632 | E4C246D910CCAE22004149E2 /* freeimage.a */, 633 | ); 634 | name = osx; 635 | path = ../../../libs/FreeImage/lib/osx; 636 | sourceTree = SOURCE_ROOT; 637 | }; 638 | /* End PBXGroup section */ 639 | 640 | /* Begin PBXNativeTarget section */ 641 | E4B69B5A0A3A1756003C02F2 /* emptyExample */ = { 642 | isa = PBXNativeTarget; 643 | buildConfigurationList = E4B69B5F0A3A1757003C02F2 /* Build configuration list for PBXNativeTarget "emptyExample" */; 644 | buildPhases = ( 645 | E4B69B580A3A1756003C02F2 /* Sources */, 646 | E4B69B590A3A1756003C02F2 /* Frameworks */, 647 | E4B6FFFD0C3F9AB9008CF71C /* ShellScript */, 648 | E4C2427710CC5ABF004149E2 /* CopyFiles */, 649 | E4C2444710CC769B004149E2 /* CopyFiles */, 650 | ); 651 | buildRules = ( 652 | ); 653 | dependencies = ( 654 | E4C2422810CC54DA004149E2 /* PBXTargetDependency */, 655 | ); 656 | name = emptyExample; 657 | productName = myOFApp; 658 | productReference = E4B69B5B0A3A1756003C02F2 /* emptyExample.app */; 659 | productType = "com.apple.product-type.application"; 660 | }; 661 | /* End PBXNativeTarget section */ 662 | 663 | /* Begin PBXProject section */ 664 | E4B69B4C0A3A1720003C02F2 /* Project object */ = { 665 | isa = PBXProject; 666 | buildConfigurationList = E4B69B4D0A3A1720003C02F2 /* Build configuration list for PBXProject "ProjectionMapping" */; 667 | compatibilityVersion = "Xcode 2.4"; 668 | developmentRegion = English; 669 | hasScannedForEncodings = 0; 670 | knownRegions = ( 671 | English, 672 | Japanese, 673 | French, 674 | German, 675 | ); 676 | mainGroup = E4B69B4A0A3A1720003C02F2; 677 | productRefGroup = E4B69B4A0A3A1720003C02F2; 678 | projectDirPath = ""; 679 | projectReferences = ( 680 | { 681 | ProductGroup = E4C2421710CC549C004149E2 /* Products */; 682 | ProjectRef = E4C2421610CC549C004149E2 /* openFrameworksLib.xcodeproj */; 683 | }, 684 | ); 685 | projectRoot = ""; 686 | targets = ( 687 | E4B69B5A0A3A1756003C02F2 /* emptyExample */, 688 | ); 689 | }; 690 | /* End PBXProject section */ 691 | 692 | /* Begin PBXReferenceProxy section */ 693 | E4C2421E10CC549C004149E2 /* openFrameworks.a */ = { 694 | isa = PBXReferenceProxy; 695 | fileType = archive.ar; 696 | path = openFrameworks.a; 697 | remoteRef = E4C2421D10CC549C004149E2 /* PBXContainerItemProxy */; 698 | sourceTree = BUILT_PRODUCTS_DIR; 699 | }; 700 | /* End PBXReferenceProxy section */ 701 | 702 | /* Begin PBXShellScriptBuildPhase section */ 703 | E4B6FFFD0C3F9AB9008CF71C /* ShellScript */ = { 704 | isa = PBXShellScriptBuildPhase; 705 | buildActionMask = 2147483647; 706 | files = ( 707 | ); 708 | inputPaths = ( 709 | ); 710 | outputPaths = ( 711 | ); 712 | runOnlyForDeploymentPostprocessing = 0; 713 | shellPath = /bin/sh; 714 | shellScript = "cp -f ../../../libs/fmodex/lib/osx/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/libfmodex.dylib\"\ninstall_name_tool -change ./libfmodex.dylib @executable_path/libfmodex.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME\" "; 715 | }; 716 | /* End PBXShellScriptBuildPhase section */ 717 | 718 | /* Begin PBXSourcesBuildPhase section */ 719 | E4B69B580A3A1756003C02F2 /* Sources */ = { 720 | isa = PBXSourcesBuildPhase; 721 | buildActionMask = 2147483647; 722 | files = ( 723 | E4B69E200A3A1BDC003C02F2 /* main.cpp in Sources */, 724 | E4B69E210A3A1BDC003C02F2 /* testApp.cpp in Sources */, 725 | 019C3E4B1372BEF900FFBD84 /* tinyxml.cpp in Sources */, 726 | 019C3E4C1372BEF900FFBD84 /* tinyxmlerror.cpp in Sources */, 727 | 019C3E4D1372BEF900FFBD84 /* tinyxmlparser.cpp in Sources */, 728 | 019C3E4E1372BEF900FFBD84 /* ofxXmlSettings.cpp in Sources */, 729 | 019C3E6B1372BEF900FFBD84 /* ofxMSAInteractiveObject.cpp in Sources */, 730 | 019C3EA11372BEF900FFBD84 /* ofxSimpleGuiButton.cpp in Sources */, 731 | 019C3EA21372BEF900FFBD84 /* ofxSimpleGuiColorPicker.cpp in Sources */, 732 | 019C3EA31372BEF900FFBD84 /* ofxSimpleGuiComboBox.cpp in Sources */, 733 | 019C3EA41372BEF900FFBD84 /* ofxSimpleGuiContent.cpp in Sources */, 734 | 019C3EA51372BEF900FFBD84 /* ofxSimpleGuiFPSCounter.cpp in Sources */, 735 | 019C3EA61372BEF900FFBD84 /* ofxSimpleGuiMovieSlider.cpp in Sources */, 736 | 019C3EA71372BEF900FFBD84 /* ofxSimpleGuiQuadWarp.cpp in Sources */, 737 | 019C3EA81372BEF900FFBD84 /* ofxSimpleGuiSlider2d.cpp in Sources */, 738 | 019C3EA91372BEF900FFBD84 /* ofxSimpleGuiTitle.cpp in Sources */, 739 | 019C3EAA1372BEF900FFBD84 /* ofxSimpleGuiToggle.cpp in Sources */, 740 | 019C3EAB1372BEF900FFBD84 /* ofxSimpleGuiConfig.cpp in Sources */, 741 | 019C3EAC1372BEF900FFBD84 /* ofxSimpleGuiControl.cpp in Sources */, 742 | 019C3EAD1372BEF900FFBD84 /* ofxSimpleGuiPage.cpp in Sources */, 743 | 019C3EAE1372BEF900FFBD84 /* ofxSimpleGuiToo.cpp in Sources */, 744 | 019C3EAF1372BEF900FFBD84 /* ofxSimpleGuiValueControl.cpp in Sources */, 745 | 019C3EB91372BEF900FFBD84 /* quad.cpp in Sources */, 746 | ); 747 | runOnlyForDeploymentPostprocessing = 0; 748 | }; 749 | /* End PBXSourcesBuildPhase section */ 750 | 751 | /* Begin PBXTargetDependency section */ 752 | E4C2422810CC54DA004149E2 /* PBXTargetDependency */ = { 753 | isa = PBXTargetDependency; 754 | name = openFrameworks; 755 | targetProxy = E4C2422710CC54DA004149E2 /* PBXContainerItemProxy */; 756 | }; 757 | /* End PBXTargetDependency section */ 758 | 759 | /* Begin XCBuildConfiguration section */ 760 | E4B27CA010CBF8A600536013 /* ReleaseUniversal */ = { 761 | isa = XCBuildConfiguration; 762 | buildSettings = { 763 | ARCHS = ( 764 | ppc, 765 | i386, 766 | ); 767 | CONFIGURATION_BUILD_DIR = "$(SRCROOT)/bin/"; 768 | COPY_PHASE_STRIP = YES; 769 | DEAD_CODE_STRIPPING = YES; 770 | GCC_AUTO_VECTORIZATION = YES; 771 | GCC_ENABLE_SSE3_EXTENSIONS = YES; 772 | GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = YES; 773 | GCC_INLINES_ARE_PRIVATE_EXTERN = NO; 774 | GCC_MODEL_TUNING = G5; 775 | GCC_OPTIMIZATION_LEVEL = 3; 776 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 777 | GCC_UNROLL_LOOPS = YES; 778 | GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; 779 | GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO; 780 | GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = NO; 781 | GCC_WARN_UNINITIALIZED_AUTOS = NO; 782 | GCC_WARN_UNUSED_VALUE = NO; 783 | GCC_WARN_UNUSED_VARIABLE = NO; 784 | HEADER_SEARCH_PATHS = ( 785 | "../../../libs/openFrameworks/**", 786 | ../../../libs/freetype/include/, 787 | ../../../libs/freetype/include/freetype2, 788 | ../../../libs/poco/include, 789 | ../../../addons/, 790 | ); 791 | OTHER_CPLUSPLUSFLAGS = ( 792 | "-D__MACOSX_CORE__", 793 | "-lpthread", 794 | ); 795 | OTHER_LDFLAGS = ""; 796 | }; 797 | name = ReleaseUniversal; 798 | }; 799 | E4B27CA110CBF8A600536013 /* ReleaseUniversal */ = { 800 | isa = XCBuildConfiguration; 801 | buildSettings = { 802 | COPY_PHASE_STRIP = YES; 803 | FRAMEWORK_SEARCH_PATHS = ( 804 | "$(inherited)", 805 | "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", 806 | ); 807 | FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/glut/lib/osx\""; 808 | GCC_ENABLE_FIX_AND_CONTINUE = NO; 809 | GCC_GENERATE_DEBUGGING_SYMBOLS = NO; 810 | GCC_MODEL_TUNING = G4; 811 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 812 | GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; 813 | INFOPLIST_FILE = "openFrameworks-Info.plist"; 814 | INSTALL_PATH = "$(HOME)/Applications"; 815 | LIBRARY_SEARCH_PATHS = ( 816 | "$(inherited)", 817 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", 818 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", 819 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", 820 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)", 821 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)", 822 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)", 823 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", 824 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", 825 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", 826 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", 827 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", 828 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", 829 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", 830 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)", 831 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)", 832 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", 833 | ); 834 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/freeimage/lib/osx\""; 835 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14 = "\"$(SRCROOT)/../../../libs/fmodex/lib/osx\""; 836 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15 = "\"$(SRCROOT)/../../../libs/freetype/lib/osx\""; 837 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)/../../../libs/FreeImage/lib/osx\""; 838 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4 = "\"$(SRCROOT)/../../../libs/GLee/lib/osx\""; 839 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5 = "\"$(SRCROOT)/../../../libs/poco/lib/osx\""; 840 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6 = "\"$(SRCROOT)/../../../libs/rtAudio/lib/osx\""; 841 | PREBINDING = NO; 842 | PRODUCT_NAME = "$(TARGET_NAME)Universal"; 843 | WRAPPER_EXTENSION = app; 844 | ZERO_LINK = NO; 845 | }; 846 | name = ReleaseUniversal; 847 | }; 848 | E4B69B4E0A3A1720003C02F2 /* Debug */ = { 849 | isa = XCBuildConfiguration; 850 | buildSettings = { 851 | ARCHS = "$(NATIVE_ARCH)"; 852 | CONFIGURATION_BUILD_DIR = "$(SRCROOT)/bin/"; 853 | COPY_PHASE_STRIP = NO; 854 | DEAD_CODE_STRIPPING = YES; 855 | GCC_AUTO_VECTORIZATION = YES; 856 | GCC_ENABLE_SSE3_EXTENSIONS = YES; 857 | GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = YES; 858 | GCC_INLINES_ARE_PRIVATE_EXTERN = NO; 859 | GCC_MODEL_TUNING = G5; 860 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 861 | GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; 862 | GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO; 863 | GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = NO; 864 | GCC_WARN_UNINITIALIZED_AUTOS = NO; 865 | GCC_WARN_UNUSED_VALUE = NO; 866 | GCC_WARN_UNUSED_VARIABLE = NO; 867 | HEADER_SEARCH_PATHS = ( 868 | "../../../libs/openFrameworks/**", 869 | ../../../libs/freetype/include/, 870 | ../../../libs/freetype/include/freetype2, 871 | ../../../libs/poco/include, 872 | ../../../addons/, 873 | ); 874 | OTHER_CPLUSPLUSFLAGS = ( 875 | "-D__MACOSX_CORE__", 876 | "-lpthread", 877 | ); 878 | OTHER_LDFLAGS = ""; 879 | }; 880 | name = Debug; 881 | }; 882 | E4B69B4F0A3A1720003C02F2 /* Release */ = { 883 | isa = XCBuildConfiguration; 884 | buildSettings = { 885 | ARCHS = "$(NATIVE_ARCH)"; 886 | CONFIGURATION_BUILD_DIR = "$(SRCROOT)/bin/"; 887 | COPY_PHASE_STRIP = YES; 888 | DEAD_CODE_STRIPPING = YES; 889 | GCC_AUTO_VECTORIZATION = YES; 890 | GCC_ENABLE_SSE3_EXTENSIONS = YES; 891 | GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = YES; 892 | GCC_INLINES_ARE_PRIVATE_EXTERN = NO; 893 | GCC_MODEL_TUNING = G5; 894 | GCC_OPTIMIZATION_LEVEL = 3; 895 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 896 | GCC_UNROLL_LOOPS = YES; 897 | GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; 898 | GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO; 899 | GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = NO; 900 | GCC_WARN_UNINITIALIZED_AUTOS = NO; 901 | GCC_WARN_UNUSED_VALUE = NO; 902 | GCC_WARN_UNUSED_VARIABLE = NO; 903 | HEADER_SEARCH_PATHS = ( 904 | "../../../libs/openFrameworks/**", 905 | ../../../libs/freetype/include/, 906 | ../../../libs/freetype/include/freetype2, 907 | ../../../libs/poco/include, 908 | ../../../addons/, 909 | ); 910 | OTHER_CPLUSPLUSFLAGS = ( 911 | "-D__MACOSX_CORE__", 912 | "-lpthread", 913 | ); 914 | OTHER_LDFLAGS = ""; 915 | }; 916 | name = Release; 917 | }; 918 | E4B69B600A3A1757003C02F2 /* Debug */ = { 919 | isa = XCBuildConfiguration; 920 | buildSettings = { 921 | COPY_PHASE_STRIP = NO; 922 | FRAMEWORK_SEARCH_PATHS = ( 923 | "$(inherited)", 924 | "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", 925 | ); 926 | FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/glut/lib/osx\""; 927 | GCC_DYNAMIC_NO_PIC = NO; 928 | GCC_ENABLE_FIX_AND_CONTINUE = YES; 929 | GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 930 | GCC_MODEL_TUNING = G4; 931 | GCC_OPTIMIZATION_LEVEL = 0; 932 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 933 | GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; 934 | INFOPLIST_FILE = "openFrameworks-Info.plist"; 935 | INSTALL_PATH = "$(HOME)/Applications"; 936 | LIBRARY_SEARCH_PATHS = ( 937 | "$(inherited)", 938 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", 939 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", 940 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", 941 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)", 942 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)", 943 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)", 944 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", 945 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", 946 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", 947 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", 948 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", 949 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", 950 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", 951 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)", 952 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)", 953 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", 954 | ); 955 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/freeimage/lib/osx\""; 956 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14 = "\"$(SRCROOT)/../../../libs/fmodex/lib/osx\""; 957 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15 = "\"$(SRCROOT)/../../../libs/freetype/lib/osx\""; 958 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)/../../../libs/FreeImage/lib/osx\""; 959 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4 = "\"$(SRCROOT)/../../../libs/GLee/lib/osx\""; 960 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5 = "\"$(SRCROOT)/../../../libs/poco/lib/osx\""; 961 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6 = "\"$(SRCROOT)/../../../libs/rtAudio/lib/osx\""; 962 | PREBINDING = NO; 963 | PRODUCT_NAME = "$(TARGET_NAME)Debug"; 964 | WRAPPER_EXTENSION = app; 965 | ZERO_LINK = NO; 966 | }; 967 | name = Debug; 968 | }; 969 | E4B69B610A3A1757003C02F2 /* Release */ = { 970 | isa = XCBuildConfiguration; 971 | buildSettings = { 972 | COPY_PHASE_STRIP = YES; 973 | FRAMEWORK_SEARCH_PATHS = ( 974 | "$(inherited)", 975 | "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", 976 | ); 977 | FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/glut/lib/osx\""; 978 | GCC_ENABLE_FIX_AND_CONTINUE = NO; 979 | GCC_GENERATE_DEBUGGING_SYMBOLS = NO; 980 | GCC_MODEL_TUNING = G4; 981 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 982 | GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; 983 | INFOPLIST_FILE = "openFrameworks-Info.plist"; 984 | INSTALL_PATH = "$(HOME)/Applications"; 985 | LIBRARY_SEARCH_PATHS = ( 986 | "$(inherited)", 987 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", 988 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", 989 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)", 990 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)", 991 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)", 992 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)", 993 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)", 994 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)", 995 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)", 996 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)", 997 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)", 998 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)", 999 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)", 1000 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)", 1001 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)", 1002 | "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)", 1003 | ); 1004 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../libs/freeimage/lib/osx\""; 1005 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14 = "\"$(SRCROOT)/../../../libs/fmodex/lib/osx\""; 1006 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15 = "\"$(SRCROOT)/../../../libs/freetype/lib/osx\""; 1007 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)/../../../libs/FreeImage/lib/osx\""; 1008 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4 = "\"$(SRCROOT)/../../../libs/GLee/lib/osx\""; 1009 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5 = "\"$(SRCROOT)/../../../libs/poco/lib/osx\""; 1010 | LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6 = "\"$(SRCROOT)/../../../libs/rtAudio/lib/osx\""; 1011 | PREBINDING = NO; 1012 | PRODUCT_NAME = "$(TARGET_NAME)"; 1013 | WRAPPER_EXTENSION = app; 1014 | ZERO_LINK = NO; 1015 | }; 1016 | name = Release; 1017 | }; 1018 | /* End XCBuildConfiguration section */ 1019 | 1020 | /* Begin XCConfigurationList section */ 1021 | E4B69B4D0A3A1720003C02F2 /* Build configuration list for PBXProject "ProjectionMapping" */ = { 1022 | isa = XCConfigurationList; 1023 | buildConfigurations = ( 1024 | E4B69B4E0A3A1720003C02F2 /* Debug */, 1025 | E4B69B4F0A3A1720003C02F2 /* Release */, 1026 | E4B27CA010CBF8A600536013 /* ReleaseUniversal */, 1027 | ); 1028 | defaultConfigurationIsVisible = 0; 1029 | defaultConfigurationName = Release; 1030 | }; 1031 | E4B69B5F0A3A1757003C02F2 /* Build configuration list for PBXNativeTarget "emptyExample" */ = { 1032 | isa = XCConfigurationList; 1033 | buildConfigurations = ( 1034 | E4B69B600A3A1757003C02F2 /* Debug */, 1035 | E4B69B610A3A1757003C02F2 /* Release */, 1036 | E4B27CA110CBF8A600536013 /* ReleaseUniversal */, 1037 | ); 1038 | defaultConfigurationIsVisible = 0; 1039 | defaultConfigurationName = Release; 1040 | }; 1041 | /* End XCConfigurationList section */ 1042 | }; 1043 | rootObject = E4B69B4C0A3A1720003C02F2 /* Project object */; 1044 | } 1045 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | LPMT - Little Projection-Mapping Tool 2 | --------------------------------------- 3 | (C) 2011, HVA - Hermanitos Verdes Architetti / Modena, Italy 4 | 5 | 6 | LPMT is a little projection-mapping tool for use in our office, 7 | it is developed in C++ using OpenFrameworks. 8 | It’s based on simple quad warping paradigm, and, though rather simple, can 9 | be used to achieve complex and professional projection-mapping sets. 10 | 11 | 12 | DOWNLOAD: 13 | ---------- 14 | 15 | At the moment LPMT is only available as source code, and we've only tested it on linux systems 16 | but thanks to the multi-platform nature of OpenFrameworks it should work out-of-the-box on 17 | Windows and OsX too. 18 | 19 | up-to-date code (git repository): 20 | http://gitorious.org/projection-mapping 21 | 22 | for the github fans, the repository is mirrored here: 23 | https://github.com/hvfrancesco/ProjectionMapping 24 | 25 | if you don't like git, you can find a rarely updated zip file: 26 | http://www.hv-a.com/projectTiles/projection-mapping.zip 27 | 28 | 29 | 30 | MAIN FEATURES: 31 | -------------- 32 | 33 | * up to 36 independent layers (remember you can use a solid black quad even as a mask) 34 | * possible content: solid color, images, video, live-cam, slideshows, smoothly changing solid colors, and more ... 35 | * independent transparency setting for each content element 36 | * customizable colorization for each content element 37 | * customizable video speed and volume 38 | * save/load project set to/from xml file 39 | * syncronized start for video elements 40 | * vertex snap function for adjacent quads 41 | * cam snapshot background for rough positioning of quads 42 | * customizable speed for slideshows and color transitions 43 | 44 | 45 | KEY COMMANDS: 46 | ------------- 47 | 48 | ’s' – saves settings to xml (projection_settings.xml in data folder) 49 | ‘l’ – loads settings from xml file 50 | 51 | ‘a’ – adds new quad 52 | ‘>’ – go to next quad 53 | ‘<’ – go to previous quad 54 | '+' - raise active quad position in layers pile 55 | '-' - lower active quad position in layers pile 56 | ‘z’ – selects first gui page for active quad settings 57 | ‘x’ – selects second gui page for active quad settings 58 | ‘c’ – selects gui page for active quad corner position fine-tuning 59 | ‘q’ – fills window with active quad 60 | 61 | ‘spacebar’ – toggles projection/setup modes 62 | ‘g’ – toggles gui (for quad warping with mouse gui must be switched off) 63 | ‘f’ – toggles fullscreen mode 64 | ‘w’ – toggles cam snapshot window background 65 | ‘r’ – resyncs all videos and slideshows in all quads to starting point 66 | ‘1’ – shows general settings page of gui 67 | 68 | 69 | TODO: 70 | ---------- 71 | 72 | - quad masking (needs some OpenGL-fu) 73 | - controlling settings via OSC messages 74 | 75 | 76 | CONTACT: 77 | ---------- 78 | 79 | you can contact us at: 80 | francesco[at]hv-a.com 81 | 82 | ------------------------------------------------------------------------------- 83 | 84 | this README was last edited by hv_francesco on Wed Feb 23, 2011 19:54 GMT+1, 85 | edited 1 times in total. 86 | 87 | __________________________________ 88 | 89 | HVA - hermanitos verdes architetti 90 | modena - italy 91 | www.hv-a.com 92 | -------------------------------------------------------------------------------- /addons.make: -------------------------------------------------------------------------------- 1 | ofxXmlSettings 2 | ofxMSAInteractiveObject 3 | ofxSimpleGuiToo 4 | -------------------------------------------------------------------------------- /bin/data/car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/car.jpg -------------------------------------------------------------------------------- /bin/data/img/car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/img/car.jpg -------------------------------------------------------------------------------- /bin/data/img/ofTheo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/img/ofTheo.jpg -------------------------------------------------------------------------------- /bin/data/img/test_mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/img/test_mask.png -------------------------------------------------------------------------------- /bin/data/ofTheo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/ofTheo.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/1/car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/1/car.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/1/ofTheo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/1/ofTheo.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/2/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/2/1.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/2/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/2/2.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/2/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/2/3.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/2/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/2/4.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/2/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/2/5.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/2/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/2/6.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/2/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/2/7.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/2/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/2/8.jpg -------------------------------------------------------------------------------- /bin/data/slideshow/2/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/slideshow/2/9.jpg -------------------------------------------------------------------------------- /bin/data/type/frabk.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/type/frabk.ttf -------------------------------------------------------------------------------- /bin/data/type/mono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/type/mono.ttf -------------------------------------------------------------------------------- /bin/data/type/verdana.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/type/verdana.ttf -------------------------------------------------------------------------------- /bin/data/video/avi_test_1.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/video/avi_test_1.mp4 -------------------------------------------------------------------------------- /bin/data/video/fingers.mov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hvfrancesco/ProjectionMapping/9265614ece3f4fab5c251f4eaa8107200ad714f1/bin/data/video/fingers.mov -------------------------------------------------------------------------------- /config.make: -------------------------------------------------------------------------------- 1 | # add custom variables to this file 2 | 3 | # OF_ROOT allows to move projects outside apps/* just set this variable to the 4 | # absoulte path to the OF root folder 5 | 6 | OF_ROOT = ../../.. 7 | 8 | 9 | # USER_CFLAGS allows to pass custom flags to the compiler 10 | # for example search paths like: 11 | # USER_CFLAGS = -I src/objects 12 | 13 | USER_CFLAGS = 14 | 15 | 16 | # USER_LDFLAGS allows to pass custom flags to the linker 17 | # for example libraries like: 18 | # USER_LD_FLAGS = libs/libawesomelib.a 19 | 20 | USER_LDFLAGS = 21 | 22 | 23 | # use this to add system libraries for example: 24 | # USER_LIBS = -lpango 25 | 26 | USER_LIBS = 27 | 28 | 29 | # change this to add different compiler optimizations to your project 30 | 31 | USER_COMPILER_OPTIMIZATION = -march=native -mtune=native -Os 32 | 33 | 34 | EXCLUDE_FROM_SOURCE="bin,.xcodeproj,obj" 35 | -------------------------------------------------------------------------------- /openFrameworks-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.openFrameworks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /projection_mapping_linux.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 253 | 254 | -------------------------------------------------------------------------------- /projection_mapping_linux.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /projection_mapping_linux64.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 253 | 254 | -------------------------------------------------------------------------------- /projection_mapping_linux64.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/ball.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | //stupid ball class 4 | class ball 5 | { 6 | 7 | public: 8 | ball() 9 | { 10 | 11 | } 12 | 13 | void setup(float x, float y, float r) 14 | { 15 | pos.x = x; 16 | pos.y = y; 17 | pos.z = r; 18 | 19 | vel.x = 2.0; 20 | vel.y = 1.6; 21 | } 22 | 23 | void update(int width, int height) 24 | { 25 | if( pos.x + pos.z >= width) 26 | { 27 | pos.x = width - pos.z; 28 | vel.x *= -1; 29 | } 30 | else if( pos.x - pos.z <= 0) 31 | { 32 | pos.x = pos.z; 33 | vel.x *= -1; 34 | } 35 | 36 | if( pos.y + pos.z >= height) 37 | { 38 | pos.y = height - pos.z; 39 | vel.y *= -1; 40 | } 41 | else if( pos.y - pos.z <= 0) 42 | { 43 | pos.y = pos.z; 44 | vel.y *= -1; 45 | } 46 | 47 | pos.x += vel.x; 48 | pos.y += vel.y; 49 | } 50 | 51 | void draw() 52 | { 53 | ofSetRectMode(OF_RECTMODE_CENTER); 54 | ofCircle(pos.x, pos.y, pos.z); 55 | ofSetRectMode(OF_RECTMODE_CORNER); 56 | } 57 | 58 | ofPoint pos; 59 | ofPoint vel; 60 | 61 | }; 62 | 63 | -------------------------------------------------------------------------------- /src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "testApp.h" 2 | #include "ofMain.h" 3 | 4 | 5 | 6 | //======================================================================== 7 | int main( ) 8 | { 9 | 10 | ofSetupOpenGL(800,600, OF_WINDOW); // <-------- setup the GL context 11 | 12 | // this kicks off the running of my app 13 | // can be OF_WINDOW or OF_FULLSCREEN 14 | // pass in width and height too: 15 | 16 | ofRunApp(new testApp()); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/quad.cpp: -------------------------------------------------------------------------------- 1 | #include "quad.h" 2 | 3 | 4 | // a func for reading a dir content to a vector of strings 5 | int quad::getdir (string dir, vector &files) 6 | { 7 | DIR *dp; 8 | struct dirent *dirp; 9 | if((dp = opendir(dir.c_str())) == NULL) { 10 | cout << "Error(" << errno << ") opening " << dir << endl; 11 | return errno; 12 | } 13 | 14 | while ((dirp = readdir(dp)) != NULL) { 15 | files.push_back(string(dirp->d_name)); 16 | } 17 | closedir(dp); 18 | return 0; 19 | } 20 | 21 | 22 | void quad::setup(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, vector &imgFiles, vector &videoFiles, vector &slideshowFolders) 23 | { 24 | 25 | //loads load in some truetype fonts 26 | ttf.loadFont("type/frabk.ttf", 22); 27 | ttf2.loadFont("type/frabk.ttf", 14); 28 | //lets load a test image too 29 | //img.loadImage("car.jpg"); 30 | 31 | loadedImg = string(""); 32 | loadedVideo = string(""); 33 | loadedSlideshow = string(""); 34 | 35 | quadNumber = 0; 36 | //this is just for our gui / mouse handles 37 | //this will end up being the destination quad we are warping too 38 | 39 | corners[0].x = x1; 40 | corners[0].y = y1; 41 | 42 | corners[1].x = x2; 43 | corners[1].y = y2; 44 | 45 | corners[2].x = x3; 46 | corners[2].y = y3; 47 | 48 | corners[3].x = x4; 49 | corners[3].y = y4; 50 | 51 | images = imgFiles; 52 | videos = videoFiles; 53 | slideshows = slideshowFolders; 54 | 55 | borderColor = 0x666666; 56 | 57 | // sets default variables 58 | initialized = True; 59 | isSetup = True; 60 | isOn = True; 61 | colorBg = False; 62 | transBg = False; 63 | transUp = True; 64 | camBg = False; 65 | camGreenscreen = False; 66 | imgBg = False; 67 | videoBg = False; 68 | videoLoop = True; 69 | videoGreenscreen = False; 70 | slideshowBg = False; 71 | slideFit = False; 72 | slideKeepAspect = True; 73 | 74 | camWidth = 640; 75 | camHeight = 480; 76 | camMultX = 1; 77 | camMultY = 1; 78 | camTexture.allocate(camWidth,camHeight, GL_RGB); 79 | camAlphaTexture.allocate(camWidth, camHeight, GL_RGBA); 80 | camPixels = new unsigned char [camWidth*camHeight*3]; 81 | camAlphaPixels = new unsigned char [camWidth*camHeight*4]; 82 | 83 | imgMultX = 1.0; 84 | imgMultY = 1.0; 85 | 86 | videoMultX = 1.0; 87 | videoMultY = 1.0; 88 | videoSpeed = 1.0; 89 | previousSpeed = 1.0; 90 | videoVolume = 0; 91 | 92 | currentSlide = 0; 93 | slideshowSpeed = 1.0; 94 | slideTimer = ofGetElapsedTimef(); 95 | 96 | transDuration = 1.0; 97 | fps = ofGetFrameRate(); 98 | transCounter = 0; 99 | 100 | bgColor.r = 0; 101 | bgColor.g = 0; 102 | bgColor.b = 0; 103 | bgColor.a = 0; 104 | 105 | secondColor.r = 0; 106 | secondColor.g = 0; 107 | secondColor.b = 0; 108 | secondColor.a = 0; 109 | 110 | startColor.r = 0; 111 | startColor.g = 0; 112 | startColor.b = 0; 113 | startColor.a = 0; 114 | 115 | endColor.r = 0; 116 | endColor.g = 0; 117 | endColor.b = 0; 118 | endColor.a = 0; 119 | 120 | imgColorize.r = 1; 121 | imgColorize.g = 1; 122 | imgColorize.b = 1; 123 | imgColorize.a = 1; 124 | 125 | videoColorize.r = 1; 126 | videoColorize.g = 1; 127 | videoColorize.b = 1; 128 | videoColorize.a = 1; 129 | 130 | camColorize.r = 1; 131 | camColorize.g = 1; 132 | camColorize.b = 1; 133 | camColorize.a = 1; 134 | 135 | colorGreenscreen.r = 0; 136 | colorGreenscreen.g = 0; 137 | colorGreenscreen.b = 0; 138 | colorGreenscreen.a = 0; 139 | 140 | thresholdGreenscreen = 10; 141 | 142 | } 143 | 144 | void quad::update() 145 | { 146 | if (isOn) { 147 | 148 | // images -------------------------------------------------------------------- 149 | // loads an image if it has changed 150 | if (imgBg) { 151 | string imgName = images[bgImg]; 152 | if (imgName != loadedImg) { 153 | img.loadImage("img/"+imgName); 154 | loadedImg = imgName; 155 | } 156 | } 157 | 158 | // solid colors --------------------------------------------------------------- 159 | // calculates transition between two solid colors 160 | if (colorBg && transBg) { 161 | if (transUp) { 162 | startColor = bgColor; 163 | endColor = secondColor; 164 | } 165 | else { 166 | startColor = secondColor; 167 | endColor = bgColor; 168 | } 169 | // using fps detected at setup is suboptimal 170 | // but updating it at each cycle triggers a flickering effect 171 | // needs more work (e.g. introducing a roundup of actual framerate) 172 | // now we update fps value just if it differs more than 50fps from actual rate 173 | //transStep = (transDuration * ofGetFrameRate()); 174 | if (abs(fps-ofGetFrameRate()) > 50) {fps = ofGetFrameRate();} 175 | transStep = (transDuration * fps); 176 | transColor.r = startColor.r + (((endColor.r - startColor.r)/transStep)*transCounter); 177 | transColor.g = startColor.g + (((endColor.g - startColor.g)/transStep)*transCounter); 178 | transColor.b = startColor.b + (((endColor.b - startColor.b)/transStep)*transCounter); 179 | transColor.a = startColor.a + (((endColor.a - startColor.a)/transStep)*transCounter); 180 | transCounter += 1; 181 | if (transCounter >= transStep) { 182 | transCounter = 0; 183 | transUp = !transUp; 184 | } 185 | 186 | } 187 | 188 | 189 | // live camera -------------------------------------------------------------- 190 | if (camBg) { 191 | if (camGreenscreen) { 192 | // checking for greenscreen color match 193 | for (int i = 0; i < camWidth*camHeight; i++) { 194 | int deltaR = abs(camPixels[i*3+0] - colorGreenscreen.r*255); 195 | int deltaG = abs(camPixels[i*3+1] - colorGreenscreen.g*255); 196 | int deltaB = abs(camPixels[i*3+2] - colorGreenscreen.b*255); 197 | if (deltaR <= thresholdGreenscreen && deltaG <= thresholdGreenscreen && deltaB <= thresholdGreenscreen) { 198 | camAlphaPixels[i*4+3] = 0; 199 | } 200 | else {camAlphaPixels[i*4+3] = 255;} 201 | // RGB data is copied untouched 202 | camAlphaPixels[i*4+0] = camPixels[i*3+0]; 203 | camAlphaPixels[i*4+1] = camPixels[i*3+1]; 204 | camAlphaPixels[i*4+2] = camPixels[i*3+2]; 205 | 206 | } 207 | // loads data into texture with alpha 208 | camAlphaTexture.loadData(camAlphaPixels,camWidth,camHeight,GL_RGBA); 209 | } 210 | else { 211 | // loads camera pixels into this quad camera-texture wirh no alpha 212 | camTexture.loadData(camPixels, camWidth, camHeight, GL_RGB); 213 | } 214 | } 215 | 216 | 217 | // video -------------------------------------------------------------------- 218 | // loads video 219 | if (videoBg) { 220 | string videoName = videos[bgVideo]; 221 | if (videoName != loadedVideo) { 222 | if (video.bLoaded) { video.closeMovie(); } 223 | video.loadMovie("video/"+videoName); 224 | videoWidth = video.width; 225 | videoHeight = video.height; 226 | if (videoTex.bAllocated()) {videoTex.clear();} 227 | videoTex.allocate(videoWidth, videoHeight, GL_RGBA); 228 | videoAlphaPixels = new unsigned char [videoWidth*videoHeight*4]; 229 | video.play(); 230 | loadedVideo = videoName; 231 | } 232 | video.setVolume(videoVolume); 233 | // check for looping config parameter of video and sets loopstate - OF_LOOP_NORMAL = cycles / OF_LOOP_NONE = stops at the end 234 | if (videoLoop) { 235 | video.setLoopState(OF_LOOP_NORMAL); 236 | } 237 | else { 238 | video.setLoopState(OF_LOOP_NONE); 239 | } 240 | video.idleMovie(); 241 | 242 | // video greenscreen stuff 243 | if (videoGreenscreen) { 244 | // gets video frame pixels array 245 | videoPixels = video.getPixels(); 246 | // checking for greenscreen color match 247 | for (int i = 0; i < videoWidth*videoHeight; i++) { 248 | int deltaR = abs(videoPixels[i*3+0] - colorGreenscreen.r*255); 249 | int deltaG = abs(videoPixels[i*3+1] - colorGreenscreen.g*255); 250 | int deltaB = abs(videoPixels[i*3+2] - colorGreenscreen.b*255); 251 | if (deltaR <= thresholdGreenscreen && deltaG <= thresholdGreenscreen && deltaB <= thresholdGreenscreen) { 252 | videoAlphaPixels[i*4+3] = 0; 253 | } 254 | else {videoAlphaPixels[i*4+3] = 255;} 255 | // RGB data is copied untouched 256 | videoAlphaPixels[i*4+0] = videoPixels[i*3+0]; 257 | videoAlphaPixels[i*4+1] = videoPixels[i*3+1]; 258 | videoAlphaPixels[i*4+2] = videoPixels[i*3+2]; 259 | } 260 | videoTex.loadData(videoAlphaPixels,videoWidth,videoHeight,GL_RGBA); 261 | } 262 | 263 | // changevideo speed 264 | if (previousSpeed != videoSpeed) { 265 | video.setSpeed(videoSpeed); 266 | previousSpeed = videoSpeed; 267 | } 268 | } 269 | 270 | // slideshow ----------------------------------------------------------------- 271 | if (slideshowBg) { 272 | // put it to off while loading images 273 | slideshowBg = False; 274 | string slideshowName = slideshows[bgSlideshow]; 275 | // if a different slideshow has been chosen in gui we do load its images 276 | if (slideshowName != loadedSlideshow) { 277 | // we exclude "." and ".." directories if present 278 | if (slideshowName != "." && slideshowName != "..") { 279 | // we scan the img dir for images 280 | string slidesDir = string("./data/slideshow/"); 281 | slidesDir += slideshowName; 282 | // make two arrays, one for imgs names and one for images 283 | slidesnames = vector(); 284 | slides = vector(); 285 | // read all content of show folder 286 | getdir(slidesDir,slidesnames); 287 | // for each name found loads the image and populates the imgs array (excluding "." an "..") 288 | for (unsigned int i = 0;i < slidesnames.size();i++) { 289 | if (slidesnames[i] != "." && slidesnames[i] != "..") { 290 | slide.loadImage("slideshow/"+slideshowName+"/"+slidesnames[i]); 291 | slides.push_back(slide); 292 | } 293 | } 294 | loadedSlideshow = slideshowName; 295 | currentSlide = 0; 296 | slideTimer = ofGetElapsedTimef(); 297 | } 298 | } 299 | // turn it on again for drawing 300 | slideshowBg = True; 301 | } 302 | 303 | //we set matrix to the default - 0 translation 304 | //and 1.0 scale for x y z and w 305 | for(int i = 0; i < 16; i++) 306 | { 307 | if(i % 5 != 0) matrix[i] = 0.0; 308 | else matrix[i] = 1.0; 309 | } 310 | 311 | //we set the warp coordinates 312 | //source coordinates as the dimensions of our window 313 | src[0].x = 0; 314 | src[0].y = 0; 315 | src[1].x = ofGetWidth(); 316 | src[1].y = 0; 317 | src[2].x = ofGetWidth(); 318 | src[2].y = ofGetHeight(); 319 | src[3].x = 0; 320 | src[3].y = ofGetHeight(); 321 | 322 | //corners are in 0.0 - 1.0 range 323 | //so we scale up so that they are at the window's scale 324 | for(int i = 0; i < 4; i++) 325 | { 326 | dst[i].x = corners[i].x * (float)ofGetWidth(); 327 | dst[i].y = corners[i].y * (float) ofGetHeight(); 328 | } 329 | 330 | } 331 | } 332 | 333 | 334 | // DRAW ----------------------------------------------------------------- 335 | void quad::draw() 336 | { 337 | if (isOn) { 338 | // save actual GL coordinates 339 | ofPushMatrix(); 340 | 341 | // find transformation matrix 342 | findHomography(src, dst, matrix); 343 | 344 | 345 | //finally lets multiply our matrix 346 | //wooooo hoooo! 347 | glMultMatrixf(matrix); 348 | 349 | 350 | // -- NOW LETS DRAW!!!!!! ----- 351 | 352 | // if a solid color content or color transition is set it draws it 353 | 354 | // solid colors ---------------------------------------------------------------- 355 | if (colorBg) { 356 | ofFill(); 357 | ofEnableAlphaBlending(); 358 | // if we have two colors it draws with calculated transition color 359 | if (transBg) { 360 | ofSetColor(transColor.r * 255, transColor.g * 255, transColor.b * 255, transColor.a * 255); 361 | } 362 | // this in case of only one color set 363 | else { 364 | ofSetColor(bgColor.r * 255, bgColor.g * 255, bgColor.b * 255, bgColor.a * 255); 365 | } 366 | ofRect(0, 0, ofGetWidth(), ofGetHeight()); 367 | ofDisableAlphaBlending(); 368 | ofNoFill(); 369 | } 370 | 371 | // video ---------------------------------------------------------------------- 372 | //if a video content is chosen it draws it 373 | if (videoBg) { 374 | ofEnableAlphaBlending(); 375 | ofSetColor(videoColorize.r * 255, videoColorize.g * 255, videoColorize.b * 255, videoColorize.a * 255); 376 | if (!videoLoop) { 377 | // in no-looping mode it stops drawing video frame when video reaches the end 378 | // using 'getIsMovieDone()' because there are problems with getting head position under GStream 379 | if (!video.getIsMovieDone()) { 380 | if (videoGreenscreen) {videoTex.draw(0,0,videoWidth*videoMultX, videoHeight*videoMultY);} 381 | else {video.draw(0,0,videoWidth*videoMultX, videoHeight*videoMultY);} 382 | } 383 | } 384 | else { 385 | if (videoGreenscreen) {videoTex.draw(0,0,videoWidth*videoMultX, videoHeight*videoMultY);} 386 | else {video.draw(0,0,videoWidth*videoMultX, videoHeight*videoMultY);} 387 | } 388 | ofDisableAlphaBlending(); 389 | } 390 | 391 | 392 | // camera ------------------------------------------------------------------------------ 393 | // camera stuff 394 | if (camBg) { 395 | ofEnableAlphaBlending(); 396 | ofSetColor(camColorize.r * 255, camColorize.g * 255, camColorize.b * 255, camColorize.a * 255); 397 | if (camGreenscreen) { camAlphaTexture.draw(0,0,camWidth*camMultX,camHeight*camMultY); } 398 | else { camTexture.draw(0,0,camWidth*camMultX,camHeight*camMultY); } 399 | ofDisableAlphaBlending(); 400 | } 401 | 402 | 403 | // draws slideshows 404 | if (slideshowBg) { 405 | if (slides.size() > 0) { 406 | // if we reached the end of slides vector, it loops back to first slide 407 | if (currentSlide >= slides.size()) { 408 | currentSlide = 0; 409 | } 410 | slide = slides[currentSlide]; 411 | ofEnableAlphaBlending(); 412 | // color is set according to still img colorization combo 413 | ofSetColor(imgColorize.r * 255, imgColorize.g * 255, imgColorize.b * 255, imgColorize.a * 255); 414 | // default is drawing image with its size unchanged, so we set mult factors = 1.0 415 | float multX = 1.0; 416 | float multY = 1.0; 417 | if (slideFit) { 418 | float fitX = ofGetWidth()/slide.getWidth(); 419 | float fitY = ofGetHeight()/slide.getHeight(); 420 | if (slideKeepAspect) { 421 | // we calculate the factor for fitting the image in quad respecting img aspect ratio 422 | if (fitX >= fitY) { 423 | multX = fitY; 424 | multY = fitY; 425 | } 426 | else { 427 | multX = fitX; 428 | multY = fitX; 429 | } 430 | } 431 | // this is for stretching image to whole quad size 432 | else { 433 | multX = fitX; 434 | multY = fitY; 435 | } 436 | } 437 | // at last we draw the image with appropriate size multiplier 438 | slide.draw(0,0,slide.getWidth()*multX, slide.getHeight()*multY); 439 | ofDisableAlphaBlending(); 440 | // if slide showing time has elapsed it switches to next slide 441 | if (ofGetElapsedTimef() > slideTimer+slideshowSpeed ) { 442 | currentSlide += 1; 443 | slideTimer = ofGetElapsedTimef(); 444 | } 445 | } 446 | } 447 | 448 | 449 | //if an image content is chosen it draws it (maybe use it as mask as well?) 450 | if (imgBg) { 451 | ofEnableAlphaBlending(); 452 | ofSetColor(imgColorize.r * 255, imgColorize.g * 255, imgColorize.b * 255, imgColorize.a * 255); 453 | img.draw(0,0,img.getWidth()*imgMultX, img.getHeight()*imgMultY); 454 | ofDisableAlphaBlending(); 455 | } 456 | 457 | 458 | // TEMP STUFF - our particles 459 | /* 460 | ofEnableAlphaBlending(); 461 | ofSetColor(255, 120, 0, 130); 462 | ofFill(); 463 | for(int i = 0; i < 40; i++)balls[i].draw(); 464 | ofDisableAlphaBlending(); 465 | */ 466 | 467 | //lets draw a bounding box if we are in setup mode 468 | ofNoFill(); 469 | if (isSetup) 470 | { 471 | ofSetColor(borderColor); 472 | ofRect(0, 0, ofGetWidth(), ofGetHeight()); 473 | // draws helper grid on active quad 474 | if (borderColor == 0xFFFFFF) { 475 | ofSetColor(0x444444); 476 | ofLine(0,ofGetHeight()/2,ofGetWidth(),ofGetHeight()/2); 477 | ofLine(ofGetWidth()/2,0,ofGetWidth()/2,ofGetHeight()); 478 | ofLine(ofGetWidth()/2,0,ofGetWidth()/2-20,20); 479 | ofLine(ofGetWidth()/2,0,ofGetWidth()/2+20,20); 480 | ofLine(ofGetWidth()/2-20,20,ofGetWidth()/2+20,20); 481 | ofLine(0,ofGetHeight()/4,ofGetWidth(),ofGetHeight()/4); 482 | ofLine(0,ofGetHeight()/2+ofGetHeight()/4,ofGetWidth(),ofGetHeight()/2+ofGetHeight()/4); 483 | ofLine(ofGetWidth()/4,0,ofGetWidth()/4,ofGetHeight()); 484 | ofLine(ofGetWidth()/2+ofGetWidth()/4,0,ofGetWidth()/2+ofGetWidth()/4,ofGetHeight()); 485 | } 486 | } 487 | 488 | 489 | // writes quad number with a dropback shadow in the middle of quad - KEEP IT AT LAST POSITION IN draw() 490 | if (isSetup) { 491 | ofSetColor(0x000000); 492 | ttf.drawString("quad n. "+ofToString(quadNumber), ofGetWidth()/2, ofGetHeight()/2); 493 | ofSetColor(0xFFFFFF); 494 | ttf.drawString("quad n. "+ofToString(quadNumber), (ofGetWidth()/2)-4, (ofGetHeight()/2)-4); 495 | } 496 | 497 | 498 | // restore previous coordinates 499 | ofPopMatrix(); 500 | } 501 | } 502 | 503 | 504 | 505 | void quad::gaussian_elimination(float *input, int n) 506 | { 507 | // ported to c from pseudocode in 508 | // http://en.wikipedia.org/wiki/Gaussian_elimination 509 | 510 | float * A = input; 511 | int i = 0; 512 | int j = 0; 513 | int m = n-1; 514 | while (i < m && j < n) 515 | { 516 | // Find pivot in column j, starting in row i: 517 | int maxi = i; 518 | for(int k = i+1; k fabs(A[maxi*n+j])) 521 | { 522 | maxi = k; 523 | } 524 | } 525 | if (A[maxi*n+j] != 0) 526 | { 527 | //swap rows i and maxi, but do not change the value of i 528 | if(i!=maxi) 529 | for(int k=0; k=0; i--) 561 | { 562 | for(int j=i+1; j images; 103 | vector videos; 104 | vector slideshows; 105 | vector slidesnames; 106 | vector slides; 107 | 108 | string loadedImg; 109 | string loadedVideo; 110 | string loadedSlideshow; 111 | 112 | // a func for reading a dir content to a vector of strings 113 | int getdir (string dir, vector &files); 114 | 115 | 116 | void setup(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, vector &imgFiles, vector &videoFiles, vector &slideshowFolders); 117 | 118 | void update(); 119 | 120 | void draw(); 121 | 122 | void gaussian_elimination(float *input, int n); 123 | 124 | void findHomography(ofPoint src[4], ofPoint dst[4], float homography[16]); 125 | 126 | }; 127 | 128 | -------------------------------------------------------------------------------- /src/testApp.cpp: -------------------------------------------------------------------------------- 1 | #include "testApp.h" 2 | #include "stdio.h" 3 | #include 4 | #include "ofxSimpleGuiToo.h" 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | 13 | using namespace std; 14 | 15 | int getdir (string dir, vector &files) 16 | { 17 | DIR *dp; 18 | struct dirent *dirp; 19 | if((dp = opendir(dir.c_str())) == NULL) 20 | { 21 | cout << "Error(" << errno << ") opening " << dir << endl; 22 | return errno; 23 | } 24 | 25 | while ((dirp = readdir(dp)) != NULL) 26 | { 27 | if (string(dirp->d_name) != "." && string(dirp->d_name) != "..") 28 | { 29 | files.push_back(string(dirp->d_name)); 30 | } 31 | } 32 | closedir(dp); 33 | return 0; 34 | } 35 | 36 | 37 | 38 | //-------------------------------------------------------------- 39 | void testApp::setup() 40 | { 41 | //we run at 60 fps! 42 | ofSetVerticalSync(true); 43 | 44 | // we scan the img dir for images 45 | //string imgDir = string("./data/img"); 46 | string imgDir = ofToDataPath("img",true); 47 | imgFiles = vector(); 48 | getdir(imgDir,imgFiles); 49 | string images[imgFiles.size()]; 50 | for (unsigned int i = 0; i < imgFiles.size(); i++) 51 | { 52 | images[i]= imgFiles[i]; 53 | } 54 | 55 | 56 | // we scan the video dir for videos 57 | //string videoDir = string("./data/video"); 58 | string videoDir = ofToDataPath("video",true); 59 | videoFiles = vector(); 60 | getdir(videoDir,videoFiles); 61 | string videos[videoFiles.size()]; 62 | for (unsigned int i = 0; i < videoFiles.size(); i++) 63 | { 64 | videos[i]= videoFiles[i]; 65 | } 66 | 67 | // we scan the slideshow dir for videos 68 | //string slideshowDir = string("./data/slideshow"); 69 | string slideshowDir = ofToDataPath("slideshow",true); 70 | slideshowFolders = vector(); 71 | getdir(slideshowDir,slideshowFolders); 72 | string slideshows[slideshowFolders.size()]; 73 | for (unsigned int i = 0; i < slideshowFolders.size(); i++) 74 | { 75 | slideshows[i]= slideshowFolders[i]; 76 | } 77 | 78 | 79 | ttf.loadFont("type/frabk.ttf", 11); 80 | // set border color for quads in setup mode 81 | borderColor = 0x666666; 82 | // starts in quads setup mode 83 | isSetup = True; 84 | // starts in windowed mode 85 | bFullscreen = 0; 86 | // gui is on at start 87 | bGui = 1; 88 | ofSetWindowShape(800, 600); 89 | 90 | // camera stuff 91 | camWidth = 640; // try to grab at this size. 92 | camHeight = 480; 93 | camGrabber.setVerbose(true); 94 | camGrabber.initGrabber(camWidth,camHeight); 95 | 96 | // texture for snapshot background 97 | snapshotTexture.allocate(camWidth,camHeight, GL_RGB); 98 | snapshotOn = 0; 99 | 100 | // initializes layers array 101 | for(int i = 0; i < 36; i++) 102 | { 103 | layers[i] = -1; 104 | } 105 | 106 | 107 | // defines the first 4 default quads 108 | quads[0].setup(0.0,0.0,0.5,0.0,0.5,0.5,0.0,0.5,imgFiles, videoFiles, slideshowFolders); 109 | quads[0].quadNumber = 0; 110 | quads[1].setup(0.5,0.0,1.0,0.0,1.0,0.5,0.5,0.5,imgFiles, videoFiles, slideshowFolders); 111 | quads[1].quadNumber = 1; 112 | quads[2].setup(0.0,0.5,0.5,0.5,0.5,1.0,0.0,1.0,imgFiles, videoFiles, slideshowFolders); 113 | quads[2].quadNumber = 2; 114 | quads[3].setup(0.5,0.5,1.0,0.5,1.0,1.0,0.5,1.0,imgFiles, videoFiles, slideshowFolders); 115 | quads[3].quadNumber = 3; 116 | // define last one as active quad 117 | activeQuad = 3; 118 | // number of total quads, to be modified later at each quad insertion 119 | nOfQuads = 4; 120 | layers[0] = 0; 121 | quads[0].layer = 0; 122 | layers[1] = 1; 123 | quads[1].layer = 1; 124 | layers[2] = 2; 125 | quads[2].layer = 2; 126 | layers[3] = 3; 127 | quads[3].layer = 3; 128 | 129 | 130 | 131 | // GUI STUFF --------------------------------------------------- 132 | 133 | gui.addTitle("show/hide quads"); 134 | // overriding default theme 135 | gui.config->toggleHeight = 18; 136 | gui.config->sliderTextHeight = 22; 137 | gui.config->titleHeight = 18; 138 | gui.config->fullActiveColor = 0x6B404B; 139 | 140 | // adding controls 141 | // first a general page for toggling layers on/off 142 | for(int i = 0; i < 36; i++) 143 | { 144 | gui.addToggle("quad "+ofToString(i), quads[i].isOn); 145 | } 146 | 147 | // then two pages of settings for each instantiable layer 148 | for(int i = 0; i < 36; i++) 149 | { 150 | gui.addPage("quad "+ofToString(i)+" - 1/3"); 151 | gui.addTitle("quad n. "+ofToString(i)); 152 | gui.addToggle("show/hide", quads[i].isOn); 153 | gui.addToggle("img bg on/off", quads[i].imgBg); 154 | gui.addComboBox("image bg", quads[i].bgImg, imgFiles.size(), images); 155 | gui.addSlider("img mult X", quads[i].imgMultX, 0.2, 4.0); 156 | gui.addSlider("img mult Y", quads[i].imgMultY, 0.2, 4.0); 157 | gui.addColorPicker("img colorize", &quads[i].imgColorize.r); 158 | gui.addTitle("Solid color").setNewColumn(true); 159 | gui.addToggle("solid bg on/off", quads[i].colorBg); 160 | gui.addColorPicker("Color", &quads[i].bgColor.r); 161 | gui.addToggle("transition color", quads[i].transBg); 162 | gui.addColorPicker("second Color", &quads[i].secondColor.r); 163 | gui.addSlider("trans duration", quads[i].transDuration, 0.2, 60.0); 164 | 165 | gui.addPage("quad "+ofToString(i)+" - 2/3"); 166 | gui.addTitle("Video"); 167 | gui.addToggle("video bg on/off", quads[i].videoBg); 168 | gui.addComboBox("video bg", quads[i].bgVideo, videoFiles.size(), videos); 169 | gui.addSlider("video mult X", quads[i].videoMultX, 0.2, 4.0); 170 | gui.addSlider("video mult Y", quads[i].videoMultY, 0.2, 4.0); 171 | gui.addColorPicker("video colorize", &quads[i].videoColorize.r); 172 | gui.addSlider("video sound vol", quads[i].videoVolume, 0, 100); 173 | gui.addSlider("video speed", quads[i].videoSpeed, -2.0, 4.0); 174 | gui.addToggle("video loop", quads[i].videoLoop); 175 | gui.addTitle("Camera bg").setNewColumn(true); 176 | gui.addToggle("cam on/off", quads[i].camBg); 177 | gui.addSlider("camera mult X", quads[i].camMultX, 0.2, 4.0); 178 | gui.addSlider("camera mult Y", quads[i].camMultY, 0.2, 4.0); 179 | gui.addColorPicker("cam colorize", &quads[i].camColorize.r); 180 | gui.addTitle("Greenscreen"); 181 | gui.addSlider("g-screen threshold", quads[i].thresholdGreenscreen, 0, 120); 182 | gui.addColorPicker("greenscreen col", &quads[i].colorGreenscreen.r); 183 | gui.addToggle("video greenscreen", quads[i].videoGreenscreen); 184 | gui.addToggle("camera greenscreen", quads[i].camGreenscreen); 185 | gui.addTitle("Slideshow"); 186 | gui.addToggle("slideshow on/off", quads[i].slideshowBg); 187 | gui.addComboBox("slideshow folder", quads[i].bgSlideshow, slideshowFolders.size(), slideshows); 188 | gui.addSlider("slide duration", quads[i].slideshowSpeed, 0.1, 15.0); 189 | gui.addToggle("slides to quad size", quads[i].slideFit); 190 | gui.addToggle("keep aspect ratio", quads[i].slideKeepAspect); 191 | 192 | gui.addPage("quad "+ofToString(i)+" - 3/3"); 193 | gui.addTitle("Corner 0"); 194 | gui.addSlider("X", quads[i].corners[0].x, -1.0, 2.0); 195 | gui.addSlider("Y", quads[i].corners[0].y, -1.0, 2.0); 196 | gui.addTitle("Corner 3"); 197 | gui.addSlider("X", quads[i].corners[3].x, -1.0, 2.0); 198 | gui.addSlider("Y", quads[i].corners[3].y, -1.0, 2.0); 199 | gui.addTitle("Corner 1").setNewColumn(true); 200 | gui.addSlider("X", quads[i].corners[1].x, -1.0, 2.0); 201 | gui.addSlider("Y", quads[i].corners[1].y, -1.0, 2.0); 202 | gui.addTitle("Corner 2"); 203 | gui.addSlider("X", quads[i].corners[2].x, -1.0, 2.0); 204 | gui.addSlider("Y", quads[i].corners[2].y, -1.0, 2.0); 205 | } 206 | 207 | // then we set displayed gui page to the one corresponding to active quad and show the gui 208 | gui.setPage((activeQuad*3)+2); 209 | gui.show(); 210 | 211 | } 212 | 213 | //-------------------------------------------------------------- 214 | void testApp::update() 215 | { 216 | // grabs video frame from camera and passes pixels to quads 217 | camGrabber.grabFrame(); 218 | if (camGrabber.isFrameNew()) 219 | { 220 | int totalPixels = camWidth*camHeight*3; 221 | unsigned char * pixels = camGrabber.getPixels(); 222 | for (int j = 0; j < 36; j++) 223 | { 224 | int i = layers[j]; 225 | if (quads[i].initialized) 226 | { 227 | if (quads[i].camBg) 228 | { 229 | quads[i].camPixels = pixels; 230 | quads[i].camWidth = camWidth; 231 | quads[i].camHeight = camHeight; 232 | } 233 | } 234 | } 235 | } 236 | 237 | 238 | // sets default window background, grey in setup mode and black in projection mode 239 | if (isSetup) 240 | { 241 | ofBackground(20, 20, 20); 242 | } 243 | else 244 | { 245 | ofBackground(0, 0, 0); 246 | } 247 | //ofSetWindowShape(800, 600); 248 | // loops through initialized quads and runs update, setting the border color as well 249 | for(int j = 0; j < 36; j++) 250 | { 251 | int i = layers[j]; 252 | if (quads[i].initialized) 253 | { 254 | quads[i].update(); 255 | quads[i].borderColor = borderColor; 256 | } 257 | } 258 | 259 | } 260 | 261 | //-------------------------------------------------------------- 262 | void testApp::draw() 263 | { 264 | 265 | // in setup mode sets active quad border to be white 266 | if (isSetup) 267 | { 268 | quads[activeQuad].borderColor = 0xFFFFFF; 269 | // if snapshot is on draws it as window background 270 | if (snapshotOn) 271 | { 272 | ofEnableAlphaBlending(); 273 | ofSetColor(0xFFFFFF); 274 | snapshotTexture.draw(0,0,ofGetWidth(),ofGetHeight()); 275 | ofDisableAlphaBlending(); 276 | } 277 | } 278 | 279 | // loops through initialized quads and calls their draw function 280 | for(int j = 0; j < 36; j++) 281 | { 282 | int i = layers[j]; 283 | if (quads[i].initialized) 284 | { 285 | quads[i].draw(); 286 | } 287 | } 288 | 289 | 290 | 291 | // in setup mode writes the number of active quad at the bottom of the window 292 | if (isSetup) 293 | { 294 | ofSetColor(0xFFFFFF); 295 | ttf.drawString("active quad: "+ofToString(activeQuad), 30, ofGetHeight()-25); 296 | } 297 | 298 | // draws gui 299 | if (isSetup) 300 | { 301 | gui.draw(); 302 | } 303 | 304 | } 305 | 306 | //-------------------------------------------------------------- 307 | void testApp::keyPressed(int key) 308 | { 309 | 310 | // moves active layer one position up 311 | if ( key == '+') 312 | { 313 | int position; 314 | int target; 315 | 316 | for(int i = 0; i < 35; i++) 317 | { 318 | if (layers[i] == quads[activeQuad].quadNumber) 319 | { 320 | position = i; 321 | target = i+1; 322 | } 323 | 324 | } 325 | if (layers[target] != -1) 326 | { 327 | int target_content = layers[target]; 328 | layers[target] = quads[activeQuad].quadNumber; 329 | layers[position] = target_content; 330 | quads[activeQuad].layer = target; 331 | quads[target_content].layer = position; 332 | } 333 | } 334 | 335 | 336 | // moves active layer one position down 337 | if ( key == '-') 338 | { 339 | int position; 340 | int target; 341 | 342 | for(int i = 0; i < 36; i++) 343 | { 344 | if (layers[i] == quads[activeQuad].quadNumber) 345 | { 346 | position = i; 347 | target = i-1; 348 | } 349 | 350 | } 351 | if (target >= 0) 352 | { 353 | if (layers[target] != -1) 354 | { 355 | int target_content = layers[target]; 356 | layers[target] = quads[activeQuad].quadNumber; 357 | layers[position] = target_content; 358 | quads[activeQuad].layer = target; 359 | quads[target_content].layer = position; 360 | } 361 | } 362 | } 363 | 364 | 365 | // saves quads settings to an xml file in data directory 366 | if ( key == 's' || key == 'S') 367 | { 368 | setXml(); 369 | XML.saveFile("projection_settings.xml"); 370 | 371 | } 372 | 373 | // loads settings and quads from default xml file 374 | if (key == 'l' || key == 'L') 375 | { 376 | XML.loadFile("projection_settings.xml"); 377 | getXml(); 378 | gui.setPage((activeQuad*3)+2); 379 | } 380 | 381 | // takes a snapshot of attached camera and uses it as window background 382 | if (key == 'w' || key == 'W') 383 | { 384 | snapshotOn = !snapshotOn; 385 | if (snapshotOn == 1) 386 | { 387 | camGrabber.grabFrame(); 388 | int totalPixels = camWidth*camHeight*3; 389 | unsigned char * pixels = camGrabber.getPixels(); 390 | snapshotTexture.loadData(pixels, camWidth,camHeight, GL_RGB); 391 | } 392 | } 393 | 394 | // fills window with active quad 395 | if ( key =='q' || key == 'Q' ) 396 | { 397 | if (isSetup) 398 | { 399 | quads[activeQuad].corners[0].x = 0.0; 400 | quads[activeQuad].corners[0].y = 0.0; 401 | 402 | quads[activeQuad].corners[1].x = 1.0; 403 | quads[activeQuad].corners[1].y = 0.0; 404 | 405 | quads[activeQuad].corners[2].x = 1.0; 406 | quads[activeQuad].corners[2].y = 1.0; 407 | 408 | quads[activeQuad].corners[3].x = 0.0; 409 | quads[activeQuad].corners[3].y = 1.0; 410 | } 411 | } 412 | 413 | // activates next quad 414 | if ( key =='>' ) 415 | { 416 | if (isSetup) 417 | { 418 | activeQuad += 1; 419 | if (activeQuad > nOfQuads-1) 420 | { 421 | activeQuad = 0; 422 | } 423 | } 424 | gui.setPage((activeQuad*3)+2); 425 | } 426 | 427 | // activates prev quad 428 | if ( key =='<' ) 429 | { 430 | if (isSetup) 431 | { 432 | activeQuad -= 1; 433 | if (activeQuad < 0) 434 | { 435 | activeQuad = nOfQuads-1; 436 | } 437 | } 438 | gui.setPage((activeQuad*3)+2); 439 | } 440 | 441 | // goes to first page of gui for active quad 442 | if ( key == 'z' || key == 'Z' || key == OF_KEY_F1) 443 | { 444 | gui.setPage((activeQuad*3)+2); 445 | } 446 | 447 | // goes to second page of gui for active quad 448 | if ( key == 'x' || key == 'X' || key == OF_KEY_F2) 449 | { 450 | gui.setPage((activeQuad*3)+3); 451 | } 452 | 453 | // goes to second page of gui for active quad 454 | if ( key == 'c' || key == 'C' || key == OF_KEY_F3) 455 | { 456 | gui.setPage((activeQuad*3)+4); 457 | } 458 | 459 | 460 | // adds a new quad in the middle of the screen 461 | if ( key =='a' ) 462 | { 463 | if (isSetup) 464 | { 465 | if (nOfQuads < 36) 466 | { 467 | quads[nOfQuads].setup(0.25,0.25,0.75,0.25,0.75,0.75,0.25,0.75, imgFiles, videoFiles, slideshowFolders); 468 | quads[nOfQuads].quadNumber = nOfQuads; 469 | layers[nOfQuads] = nOfQuads; 470 | quads[nOfQuads].layer = nOfQuads; 471 | activeQuad = nOfQuads; 472 | ++nOfQuads; 473 | gui.setPage((activeQuad*3)+2); 474 | } 475 | } 476 | } 477 | 478 | // toggles setup mode 479 | if ( key ==' ' ) 480 | { 481 | if (isSetup) 482 | { 483 | isSetup = False; 484 | for(int i = 0; i < 36; i++) 485 | { 486 | if (quads[i].initialized) 487 | { 488 | quads[i].isSetup = False; 489 | } 490 | } 491 | } 492 | else 493 | { 494 | isSetup = True; 495 | for(int i = 0; i < 36; i++) 496 | { 497 | if (quads[i].initialized) 498 | { 499 | quads[i].isSetup = True; 500 | } 501 | } 502 | } 503 | } 504 | 505 | // toggles fullscreen mode 506 | if(key == 'f') 507 | { 508 | 509 | bFullscreen = !bFullscreen; 510 | 511 | if(!bFullscreen) 512 | { 513 | ofSetWindowShape(800, 600); 514 | ofSetFullscreen(false); 515 | // figure out how to put the window in the center: 516 | int screenW = ofGetScreenWidth(); 517 | int screenH = ofGetScreenHeight(); 518 | ofSetWindowPosition(screenW/2-800/2, screenH/2-600/2); 519 | } 520 | else if(bFullscreen == 1) 521 | { 522 | ofSetFullscreen(true); 523 | } 524 | } 525 | 526 | // toggles gui 527 | if(key == 'g') 528 | { 529 | gui.toggleDraw(); 530 | bGui = !bGui; 531 | } 532 | 533 | if(key == '[') 534 | { 535 | gui.prevPage(); 536 | } 537 | 538 | if(key == ']') 539 | { 540 | gui.nextPage(); 541 | } 542 | 543 | // show general settings page of gui 544 | if(key == '1') 545 | { 546 | gui.setPage(1); 547 | } 548 | 549 | // resyncs videos to start point in every quad 550 | if(key == 'r' || key == 'R') 551 | { 552 | for(int i = 0; i < 36; i++) 553 | { 554 | if (quads[i].initialized) 555 | { 556 | // resets video to start ing point 557 | if (quads[i].videoBg && quads[i].video.bLoaded) 558 | { 559 | quads[i].video.setPosition(0.0); 560 | } 561 | // resets slideshow to first slide 562 | if (quads[i].slideshowBg) 563 | { 564 | quads[i].currentSlide = 0; 565 | quads[i].slideTimer = ofGetElapsedTimef(); 566 | } 567 | } 568 | } 569 | } 570 | 571 | 572 | } 573 | 574 | //-------------------------------------------------------------- 575 | void testApp::keyReleased(int key) 576 | { 577 | } 578 | 579 | 580 | //-------------------------------------------------------------- 581 | void testApp::mouseMoved(int x, int y ) 582 | { 583 | 584 | 585 | } 586 | 587 | //-------------------------------------------------------------- 588 | void testApp::mouseDragged(int x, int y, int button) 589 | { 590 | if (isSetup && !bGui) 591 | { 592 | 593 | float scaleX = (float)x / ofGetWidth(); 594 | float scaleY = (float)y / ofGetHeight(); 595 | 596 | if(whichCorner >= 0) 597 | { 598 | quads[activeQuad].corners[whichCorner].x = scaleX; 599 | quads[activeQuad].corners[whichCorner].y = scaleY; 600 | } 601 | 602 | } 603 | } 604 | 605 | //-------------------------------------------------------------- 606 | void testApp::mousePressed(int x, int y, int button) 607 | { 608 | if (isSetup && !bGui) 609 | { 610 | float smallestDist = 1.0; 611 | whichCorner = -1; 612 | 613 | for(int i = 0; i < 4; i++) 614 | { 615 | float distx = quads[activeQuad].corners[i].x - (float)x/ofGetWidth(); 616 | float disty = quads[activeQuad].corners[i].y - (float)y/ofGetHeight(); 617 | float dist = sqrt( distx * distx + disty * disty); 618 | 619 | if(dist < smallestDist && dist < 0.1) 620 | { 621 | whichCorner = i; 622 | smallestDist = dist; 623 | } 624 | } 625 | } 626 | } 627 | 628 | //-------------------------------------------------------------- 629 | void testApp::mouseReleased() 630 | { 631 | if (whichCorner >= 0) 632 | { 633 | // snap detection for near quads 634 | float smallestDist = 1.0; 635 | int snapQuad = -1; 636 | int snapCorner = -1; 637 | for (int i = 0; i < 36; i++) 638 | { 639 | if ( i != activeQuad && quads[i].initialized) 640 | { 641 | for(int j = 0; j < 4; j++) 642 | { 643 | float distx = quads[activeQuad].corners[whichCorner].x - quads[i].corners[j].x; 644 | float disty = quads[activeQuad].corners[whichCorner].y - quads[i].corners[j].y; 645 | float dist = sqrt( distx * distx + disty * disty); 646 | // to tune snapping change dist value inside next if statement 647 | if (dist < smallestDist && dist < 0.0075) 648 | { 649 | snapQuad = i; 650 | snapCorner = j; 651 | smallestDist = dist; 652 | } 653 | } 654 | } 655 | } 656 | if (snapQuad >= 0 && snapCorner >= 0) 657 | { 658 | quads[activeQuad].corners[whichCorner].x = quads[snapQuad].corners[snapCorner].x; 659 | quads[activeQuad].corners[whichCorner].y = quads[snapQuad].corners[snapCorner].y; 660 | } 661 | } 662 | whichCorner = -1; 663 | } 664 | 665 | 666 | 667 | //-------------------------------------------------------------- 668 | 669 | void testApp::setXml() 670 | 671 | { 672 | XML.setValue("GENERAL:ACTIVE_QUAD",activeQuad); 673 | XML.setValue("GENERAL:N_OF_QUADS",nOfQuads); 674 | 675 | for(int i = 0; i < 36; i++) 676 | { 677 | if (quads[i].initialized) 678 | { 679 | 680 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":NUMBER",quads[i].quadNumber); 681 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":LAYER",quads[i].layer); 682 | 683 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":IMG:LOADED_IMG",quads[i].bgImg); 684 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:LOADED_VIDEO",quads[i].bgVideo); 685 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:LOADED_SLIDESHOW",quads[i].bgSlideshow); 686 | 687 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_0:X",quads[i].corners[0].x); 688 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_0:Y",quads[i].corners[0].y); 689 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_1:X",quads[i].corners[1].x); 690 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_1:Y",quads[i].corners[1].y); 691 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_2:X",quads[i].corners[2].x); 692 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_2:Y",quads[i].corners[2].y); 693 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_3:X",quads[i].corners[3].x); 694 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_3:Y",quads[i].corners[3].y); 695 | 696 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":IS_ON",quads[i].isOn); 697 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:ACTIVE",quads[i].colorBg); 698 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:TRANS:ACTIVE",quads[i].transBg); 699 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:TRANS:DURATION",quads[i].transDuration); 700 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:ACTIVE",quads[i].slideshowBg); 701 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:SPEED",quads[i].slideshowSpeed); 702 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:FIT",quads[i].slideFit); 703 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:KEEP_ASPECT",quads[i].slideKeepAspect); 704 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CAM:ACTIVE",quads[i].camBg); 705 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":IMG:ACTIVE",quads[i].imgBg); 706 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:ACTIVE",quads[i].videoBg); 707 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CAM:WIDTH",quads[i].camWidth); 708 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CAM:HEIGHT",quads[i].camHeight); 709 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CAM:MULT_X",quads[i].camMultX); 710 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CAM:MULT_Y",quads[i].camMultY); 711 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":IMG:MULT_X",quads[i].imgMultX); 712 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":IMG:MULT_Y",quads[i].imgMultY); 713 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:MULT_X",quads[i].videoMultX); 714 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:MULT_Y",quads[i].videoMultY); 715 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:SPEED",quads[i].videoSpeed); 716 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:VOLUME",quads[i].videoVolume); 717 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:LOOP",quads[i].videoLoop); 718 | 719 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:R",quads[i].bgColor.r); 720 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:G",quads[i].bgColor.g); 721 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:B",quads[i].bgColor.b); 722 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:A",quads[i].bgColor.a); 723 | 724 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:SECOND_COLOR:R",quads[i].secondColor.r); 725 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:SECOND_COLOR:G",quads[i].secondColor.g); 726 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:SECOND_COLOR:B",quads[i].secondColor.b); 727 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":COLOR:SECOND_COLOR:A",quads[i].secondColor.a); 728 | 729 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":IMG:COLORIZE:R",quads[i].imgColorize.r); 730 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":IMG:COLORIZE:G",quads[i].imgColorize.g); 731 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":IMG:COLORIZE:B",quads[i].imgColorize.b); 732 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":IMG:COLORIZE:A",quads[i].imgColorize.a); 733 | 734 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:COLORIZE:R",quads[i].videoColorize.r); 735 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:COLORIZE:G",quads[i].videoColorize.g); 736 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:COLORIZE:B",quads[i].videoColorize.b); 737 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:COLORIZE:A",quads[i].videoColorize.a); 738 | 739 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CAM:COLORIZE:R",quads[i].camColorize.r); 740 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CAM:COLORIZE:G",quads[i].camColorize.g); 741 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CAM:COLORIZE:B",quads[i].camColorize.b); 742 | XML.setValue("QUADS:QUAD_"+ofToString(i)+":CAM:COLORIZE:A",quads[i].camColorize.a); 743 | } 744 | } 745 | } 746 | 747 | 748 | void testApp::getXml() 749 | 750 | { 751 | 752 | nOfQuads = XML.getValue("GENERAL:N_OF_QUADS", 0); 753 | activeQuad = XML.getValue("GENERAL:ACTIVE_QUAD", 0); 754 | 755 | for(int i = 0; i < nOfQuads; i++) 756 | { 757 | float x0 = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_0:X",0.0); 758 | float y0 = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_0:Y",0.0); 759 | float x1 = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_1:X",0.0); 760 | float y1 = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_1:Y",0.0); 761 | float x2 = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_2:X",0.0); 762 | float y2 = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_2:Y",0.0); 763 | float x3 = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_3:X",0.0); 764 | float y3 = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CORNERS:CORNER_3:Y",0.0); 765 | 766 | quads[i].setup(x0, y0, x1, y1, x2, y2, x3, y3, imgFiles, videoFiles, slideshowFolders); 767 | quads[i].quadNumber = XML.getValue("QUADS:QUAD_"+ofToString(i)+":NUMBER", 0); 768 | quads[i].layer = XML.getValue("QUADS:QUAD_"+ofToString(i)+":LAYER", 0); 769 | layers[quads[i].layer] = quads[i].quadNumber; 770 | 771 | quads[i].bgImg = XML.getValue("QUADS:QUAD_"+ofToString(i)+":IMG:LOADED_IMG", 0); 772 | quads[i].bgVideo = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:LOADED_VIDEO", 0); 773 | quads[i].bgSlideshow = XML.getValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:LOADED_SLIDESHOW", 0); 774 | 775 | quads[i].isOn = XML.getValue("QUADS:QUAD_"+ofToString(i)+":IS_ON",0); 776 | quads[i].colorBg = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:ACTIVE",0); 777 | 778 | quads[i].transBg = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:TRANS:ACTIVE",0); 779 | quads[i].transDuration = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:TRANS:DURATION", 1.0); 780 | quads[i].slideshowBg = XML.getValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:ACTIVE", 0); 781 | quads[i].slideshowSpeed = XML.getValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:SPEED", 1.0); 782 | quads[i].slideFit = XML.getValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:FIT", 0); 783 | quads[i].slideKeepAspect = XML.getValue("QUADS:QUAD_"+ofToString(i)+":SLIDESHOW:KEEP_ASPECT", 1); 784 | 785 | 786 | quads[i].camBg = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CAM:ACTIVE",0); 787 | quads[i].imgBg = XML.getValue("QUADS:QUAD_"+ofToString(i)+":IMG:ACTIVE",0); 788 | quads[i].videoBg = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:ACTIVE",0); 789 | quads[i].camWidth = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CAM:WIDTH",0); 790 | quads[i].camHeight = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CAM:HEIGHT",0); 791 | quads[i].camMultX = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CAM:MULT_X",1.0); 792 | quads[i].camMultY = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CAM:MULT_Y",1.0); 793 | quads[i].imgMultX = XML.getValue("QUADS:QUAD_"+ofToString(i)+":IMG:MULT_X",1.0); 794 | quads[i].imgMultY = XML.getValue("QUADS:QUAD_"+ofToString(i)+":IMG:MULT_Y",1.0); 795 | quads[i].videoMultX = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:MULT_X",1.0); 796 | quads[i].videoMultY = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:MULT_Y",1.0); 797 | quads[i].videoSpeed = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:SPEED",1.0); 798 | quads[i].videoVolume = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:VOLUME",0); 799 | quads[i].videoLoop = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:LOOP",1); 800 | 801 | quads[i].bgColor.r = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:R",0.0); 802 | quads[i].bgColor.g = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:G",0.0); 803 | quads[i].bgColor.b = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:B",0.0); 804 | quads[i].bgColor.a = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:A",0.0); 805 | 806 | quads[i].secondColor.r = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:SECOND_COLOR:R",0.0); 807 | quads[i].secondColor.g = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:SECOND_COLOR:G",0.0); 808 | quads[i].secondColor.b = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:SECOND_COLOR:B",0.0); 809 | quads[i].secondColor.a = XML.getValue("QUADS:QUAD_"+ofToString(i)+":COLOR:SECOND_COLOR:A",0.0); 810 | 811 | quads[i].imgColorize.r = XML.getValue("QUADS:QUAD_"+ofToString(i)+":IMG:COLORIZE:R",1.0); 812 | quads[i].imgColorize.g = XML.getValue("QUADS:QUAD_"+ofToString(i)+":IMG:COLORIZE:G",1.0); 813 | quads[i].imgColorize.b = XML.getValue("QUADS:QUAD_"+ofToString(i)+":IMG:COLORIZE:B",1.0); 814 | quads[i].imgColorize.a = XML.getValue("QUADS:QUAD_"+ofToString(i)+":IMG:COLORIZE:A",1.0); 815 | 816 | quads[i].videoColorize.r = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:COLORIZE:R",1.0); 817 | quads[i].videoColorize.g = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:COLORIZE:G",1.0); 818 | quads[i].videoColorize.b = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:COLORIZE:B",1.0); 819 | quads[i].videoColorize.a = XML.getValue("QUADS:QUAD_"+ofToString(i)+":VIDEO:COLORIZE:A",1.0); 820 | 821 | quads[i].camColorize.r = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CAM:COLORIZE:R",1.0); 822 | quads[i].camColorize.g = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CAM:COLORIZE:G",1.0); 823 | quads[i].camColorize.b = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CAM:COLORIZE:B",1.0); 824 | quads[i].camColorize.a = XML.getValue("QUADS:QUAD_"+ofToString(i)+":CAM:COLORIZE:A",1.0); 825 | 826 | } 827 | } 828 | -------------------------------------------------------------------------------- /src/testApp.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEST_APP 2 | #define _TEST_APP 3 | #define OF_ADDON_USING_OFXXMLSETTINGS 4 | 5 | 6 | #include "ofMain.h" 7 | 8 | #include "ball.h" 9 | #include "quad.h" 10 | #include "ofxXmlSettings.h" 11 | 12 | 13 | class testApp : public ofSimpleApp 14 | { 15 | 16 | public: 17 | 18 | void setup(); 19 | void update(); 20 | void draw(); 21 | 22 | 23 | void keyPressed(int key); 24 | void keyReleased(int key); 25 | void mouseMoved(int x, int y ); 26 | void mouseDragged(int x, int y, int button); 27 | void mousePressed(int x, int y, int button); 28 | void mouseReleased(); 29 | int whichCorner; 30 | ofTrueTypeFont ttf; 31 | 32 | quad quads[36]; 33 | int layers[36]; 34 | 35 | int activeQuad; 36 | int nOfQuads; 37 | int borderColor; 38 | 39 | bool isSetup; 40 | bool bFullscreen; 41 | bool bGui; 42 | bool snapshotOn; 43 | 44 | // gui elements 45 | bool showGui; 46 | 47 | // camera grabber 48 | ofVideoGrabber camGrabber; 49 | ofTexture camTexture; 50 | ofTexture snapshotTexture; 51 | 52 | int camWidth; 53 | int camHeight; 54 | 55 | vector imgFiles; 56 | vector videoFiles; 57 | vector slideshowFolders; 58 | 59 | ofxXmlSettings XML; 60 | void setXml(); 61 | void getXml(); 62 | 63 | 64 | 65 | 66 | }; 67 | 68 | #endif 69 | 70 | --------------------------------------------------------------------------------