Commit ad6e9c76 authored by Isaak Lim's avatar Isaak Lim
Browse files

fixed compiler and cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14727 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1d97493d
......@@ -207,7 +207,7 @@ TextNode::
createMap() {
std::map<char, unsigned int> m;
unsigned int i = 0;
for (char c = ' '; c < '~'; ++c, ++i) {
for (unsigned char c = ' '; c < '~'; ++c, ++i) {
m[c] = i;
}
......
......@@ -77,10 +77,10 @@ namespace SceneGraph {
/** \class TextNode TextNode.hh <ACG/Scenegraph/TextNode.hh>
* TextNode can be used to display a string on quads in OpenGL. This string can be set with
* setText(std::string _text). A TextNode can be attached to a parent node by using the function
* BaseObjectData::addAdditionalNode. The quads can then be set to align to the parent by setting textMode_
* to OBJECT_ALIGNED via the setRenderingMode(TextMode _textMode) function. Alternatively the quads can be aligned
* to the screen by setting textMode_ to SCREEN_ALIGNED. The font that is used to display text_ on the screen is stored
* in qfont_, which can be set with the setFont(const QFont& _font) function. Finally the quads can be scaled by setting size_
* BaseObjectData::addAdditionalNode. The quads can then be set to align to the parent (OBJECT_ALIGNED)
* via the setRenderingMode(TextMode _textMode) function. Alternatively the quads can be aligned
* to the screen (SCREEN_ALIGNED). The font that is used to display text on the screen
* can be set with the setFont(const QFont& _font) function. Finally the quads can be scaled
* via the setSize(unsigned int _size) function.
**/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment