Panda3D
Loading...
Searching...
No Matches
configVariableColor.cxx
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file configVariableColor.cxx
10 * @author rdb
11 * @date 2014-02-02
12 */
13
14#include "configVariableColor.h"
15#include "pdtoa.h"
16
17/**
18 *
19 */
20void ConfigVariableColor::
21set_default_value(const LColor &default_value) {
22 char buffer[128];
23 char *p = buffer;
24 pdtoa(default_value[0], p);
25
26 p += strlen(p);
27 *p++ = ' ';
28 pdtoa(default_value[1], p);
29
30 p += strlen(p);
31 *p++ = ' ';
32 pdtoa(default_value[2], p);
33
34 p += strlen(p);
35 *p++ = ' ';
36 pdtoa(default_value[3], p);
37
38 _core->set_default_value(buffer);
39}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.