Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Samples/tests/etc. for nuit-ooc
ooc
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.rst
TestFontData.ooc
TestRenderer.ooc
TestView.ooc
buildtest
button.png
checkbox.png
cleantest
hdragger.png
hscroll.png
hscrolldragger.png
radiobox.png
scrolldragger.png
sdltest.ooc
shadow.png
vdragger.png
vscroll.png
window.png

README.rst

nuit-test

This is the beginning of a collection of test code for nuit-ooc. I don't mean test code as in unit testing or anything else like that, just tests, or samples I suppose, that should help you perform your own tests of NUIT without having to write up a whole renderer implementation and all that first. Doing that isn't fun, nobody wants to write a renderer unless they have to, so at the very least I'm providing an incredibly simple renderer to test with.

To build this, you'll need a few things:

Under Mac OS, you'll also have to link the Cocoa and OpenGL frameworks. I've provided a buildtest script that includes both, since I'm a Mac user and I'm also incredibly lazy and don't feel like typing out those arguments every time. You may want to do the same.

License

This code is licensed under the BSD license. However, I really don't care what you do with the code, just please don't claim it's your own - this isn't the sort of code that's good enough to 'steal' (so to speak).

Copyright (c) 2010, Noel R. Cower
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

 * Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Credits

Hopefully this satisfies the credit clause for the FreeType project...

Portions of this software are copyright © 2010 The FreeType Project (www.freetype.org). All rights reserved.

Something went wrong with that request. Please try again.