Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/opengl/GLData.d @ 9:950d84783eac
Removing direct tango deps.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 09 Mar 2009 14:26:40 +0100 |
parents | 6dd524f61e62 |
children |
comparison
equal
deleted
inserted
replaced
8:2847134a5fc0 | 9:950d84783eac |
---|---|
10 * Port to the D Programming Language: | 10 * Port to the D Programming Language: |
11 * John Reimer <terminal.node@gmail.com> | 11 * John Reimer <terminal.node@gmail.com> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module org.eclipse.swt.opengl.GLData; | 13 module org.eclipse.swt.opengl.GLData; |
14 | 14 |
15 import tango.text.Util; | |
16 import tango.util.Convert; | |
17 import java.lang.all; | 15 import java.lang.all; |
18 | 16 |
19 /** | 17 /** |
20 * The GLData class is a device-independent description | 18 * The GLData class is a device-independent description |
21 * of the pixel format attributes of a GL drawable. | 19 * of the pixel format attributes of a GL drawable. |
135 * @return a string representation of the data | 133 * @return a string representation of the data |
136 */ | 134 */ |
137 override public String toString() { | 135 override public String toString() { |
138 String string = doubleBuffer ? "doubleBuffer," : ""; | 136 String string = doubleBuffer ? "doubleBuffer," : ""; |
139 string ~= stereo ? "stereo," : ""; | 137 string ~= stereo ? "stereo," : ""; |
140 string ~= "r:" ~ to!(String)(redSize) ~ " g:" ~ to!(String)(greenSize) ~ | 138 string ~= "r:" ~ String_valueOf(redSize) ~ " g:" ~ String_valueOf(greenSize) ~ |
141 " b:" ~ to!(String)(blueSize) ~ " a:" ~ to!(String)(alphaSize) ~ "," ~ | 139 " b:" ~ String_valueOf(blueSize) ~ " a:" ~ String_valueOf(alphaSize) ~ "," ~ |
142 "depth:" ~ to!(String)(depthSize) ~ ",stencil:" ~ to!(String)(stencilSize) ~ | 140 "depth:" ~ String_valueOf(depthSize) ~ ",stencil:" ~ String_valueOf(stencilSize) ~ |
143 ",accum r:" ~ to!(String)(accumRedSize) ~ "g:" ~ to!(String)(accumGreenSize) ~ | 141 ",accum r:" ~ String_valueOf(accumRedSize) ~ "g:" ~ String_valueOf(accumGreenSize) ~ |
144 "b:" ~ to!(String)(accumBlueSize) ~ "a:" ~ to!(String)(accumAlphaSize) ~ | 142 "b:" ~ String_valueOf(accumBlueSize) ~ "a:" ~ String_valueOf(accumAlphaSize) ~ |
145 ",sampleBuffers:" ~ to!(String)(sampleBuffers) ~ ",samples:" ~ to!(String)(samples); | 143 ",sampleBuffers:" ~ String_valueOf(sampleBuffers) ~ ",samples:" ~ String_valueOf(samples); |
146 return string; | 144 return string; |
147 } | 145 } |
148 } | 146 } |