You might also look at StringFormat as this sets a flag
for drawing vertical text.
StringFormat sf = new StringFormat ();
sf.FormatFlags = StringFormatFlags.DirectionVertical;
// Get the context g ... & string str, font, brush, x/y etc
Point center;
center = new Point (x,y);
g.DrawString...
Does anyone know of some source code in C or C++ that will convert a numbered set of .tga (24 bit uncompressed) files to an uncompressed .avi file ? I have studied the .avi format and written a program to do it, but when I play it back using xanim the animation is always 'stepped' as though I am...
I don't know what the maximum number of windows
that can be created actually is - but on my SGI
and Linux systems I create around 2500 without
any strain on the systems at all. I suspect I could
go on and on until memory ran out. An X-window of itself
doesn't take much memory, but of course, it...
Executables, libraries, dlls etc., created under Windows will not work directly on Unix platforms (unless you are using some kind of emulator, such as Wine).
If your program (i.e source code) makes use of GUI/graphics code on Windows then it is unlikely to compile on Unix.
You cannot use...
When you talk of a double digit, do you mean two
digits or a digit of type double ?
You set fTest to 23 and cTest to 20. These represent
ASCII control characters; is this what you meant ?
Do you want to set nTest to a numeric value ? If so,
try sprintf. eg.
sprintf (TEST_T.nTest...
Yes, you should use XCopyArea for the repaint, I wasn't implying you shouldn't. I just thought that if XCopyArea
was to blame for the memory leak, then other XCopyArea
calls in your program would exhibit a memory leak too.
And it is also true that if you are using the same pixmap
to hold the...
That last line in the above message was an error.
Something else occurs to me. Silly, I know, but you
do release the pixmap memory when you're through ?
Yes, of course you do. Just thought I'd mention it 'cos
it's the sort of thing I do ...
Your code looks fine, though I notice that the window is
not the same size as the pixmap - nothing wrong with that of course, so long as no part of the copied pixmap will extend outside of the bounds of the window.
Other than that, all I can think of is the implementation of X-Windows under Red...
I work with X-Windows a great deal and have never encountered the memory-leak problem you mention.
Most expose events depend upon XCopyArea to repaint the exposed area and I suspect that if it was troublesome then memory leaks would go into the stratosphere !
I run on SGI workstations and PCs...
L1= (35,70) (35,4) L2 =(63,4) (75,91)
I would read in an entire line as a string and then
search the string for a ( character, copy the next set of
characters to a buffer (i.e. a character string) until a ) is encountered. Continue searching for another ( and again place the characters into a...
I'm not sure what you mean by rubik's cube rotation of a plane. To rotate a cube or a plane surface is easy in OpenGL, you have merely to set the rotation matrix and redraw the picture. Any book on OpenGL will show you how.
Try www.sgi.com, (Developer's section). There are zillions of example...
Try www.darkbasic.com for more info.
I bought my copy from Amazon, on-line. They were doing a half-price deal a little while ago so it cost much less than a game. I believe that the people who produce DarkBasic will shortly be releasing a new, improved and faster version.
I am not sure that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.