July 02, 2007 Learn » Re: Style/Structuring question: One vs. multiple global objects | |||
|---|---|---|---|
| |||
...draw() { /* do sth. for ex. with viewport.width */ }}
viewport.d:
import scene;
class Viewport {
void... | |||
July 02, 2007 Learn » Re: Style/Structuring question: One vs. multiple global objects | |||
|---|---|---|---|
| |||
...Entity e) {
return tiles[e.y * MAP_WIDTH + e.x]; // or whatever
}
The downside is... | |||
July 01, 2007 Learn » Style/Structuring question: One vs. multiple global objects | |||
|---|---|---|---|
| |||
...Example for such would be the screen width & height, the current main character, the currently... | |||
June 16, 2007 General » Re: Suggestion: "fix" assert(obj) | |||
|---|---|---|---|
| |||
...would have width and length and area, and the invariant would be width*length==area... | |||
May 11, 2007 Learn » Re: Strange behaviour trying to bitwise or two negative ints into a long | |||
|---|---|---|---|
| |||
...at least for cases where the shift width is known at compile time accepting \"sizeof... | |||
April 29, 2007 Issues » [Issue 203] std.format.doFormat() pads width incorrectly on Unicode strings | |||
|---|---|---|---|
| |||
...code |spec
OS/Version|Windows |All
"field width" could be both interpreted as " byte length... | |||
April 25, 2007 Learn » Re: Get Character At? | |||
|---|---|---|---|
| |||
...toUTFindex(pText, pPos);
// Then find out its width (in bytes)
lStride = std.utf.stride(pText... | |||
April 24, 2007 Learn » Re: Get Character At? | |||
|---|---|---|---|
| |||
...pText, pPos-1);
// Then find out its width (in bytes)
lStride = std.utf.stride(pText... | |||
April 08, 2007 General » Re: Simple array init question | |||
|---|---|---|---|
| |||
...I need a static buffer of fixed width & height. As I mentioned in a previous... | |||
March 27, 2007 Issues » [Issue 1081] New: with using real and -O option, dmd generate bug code | |||
|---|---|---|---|
| |||
...ii<width) && (jj<height) ){
info.step2(srcLines[jj * width + ii],weight);
}
}
}
dstLines[j * width + i... | |||
Copyright © 1999-2021 by the D Language Foundation