Search found 1317 matches

by dafhi
Mar 08, 2012 14:18
Forum: General
Topic: Advice wanted re sort routines & histogram analysis
Replies: 12
Views: 1181

Re: Advice wanted ref sort routines & spectrum analysis

Yo, Coil. Not sure if you got this. ' -------------------------------------- ' ' histogram sort ' ' ' Type ValCount As Integer Valu,c End Type Type Bounds As Integer Hi,Lo End Type Dim Shared As Integer PtTo(&HFFFF),ubstat Dim Shared As ValCount Stats(&HFFFF) Dim Shared As ValCount stat(&...
by dafhi
Mar 07, 2012 22:37
Forum: Projects
Topic: Procedural block world project
Replies: 310
Views: 83883

Re: "Above" (procedural block world project thing)

I've begun work on my own continuous procedural function. I'm starting with the basics, a triangle wave.
by dafhi
Mar 07, 2012 21:22
Forum: General
Topic: property 'member isn't static'
Replies: 2
Views: 217

Re: property 'member isn't static'

Thank you. It would seem I'm playing tricks on myself. Hopefully not on too many other ppl :-)
by dafhi
Mar 07, 2012 19:41
Forum: General
Topic: property 'member isn't static'
Replies: 2
Views: 217

property 'member isn't static'

Why isn't this allowed?

Code: Select all

Type Type_1
    Declare Property  A as single
    As single         B
End Type

Property Type_1.A as single
    return B
End Property

Dim C as Type_1

? Type_1.A
by dafhi
Mar 06, 2012 10:20
Forum: General
Topic: How to convert 32bir color to back and while?
Replies: 6
Views: 361

Re: How to convert 32bir color to back and while?

Just leave your program in 32 bits, and when you need to look at something in grayscale, have a function to translate that onto your final viewport
by dafhi
Mar 06, 2012 9:30
Forum: General
Topic: field within union possible?
Replies: 14
Views: 1073

Re: field within union possible?

I distinctly remember trying Field on a Union and not having it work. Perhaps it was an issue with the IDE at the time. Anyway, I just tried it now and found that it does work. @dkl - as you pointed out, there seems to be no need for Field on the nested UDT now. I'll have a peek at what you posted b...
by dafhi
Mar 01, 2012 12:13
Forum: Tips and Tricks
Topic: Opengl clock ~ screensaver - Windows
Replies: 13
Views: 1744

Re: Opengl clock ~ screensaver - Windows

had me fooled because the minute hand looks solid over the background.
yep it's fullscreen here.
by dafhi
Feb 29, 2012 10:43
Forum: Tips and Tricks
Topic: Opengl clock ~ screensaver - Windows
Replies: 13
Views: 1744

Re: Opengl clock ~ screensaver - Windows

Thanks for the cool clock 8-)

[Edit] Suggestion: Place the minute hand over the hour hand
by dafhi
Feb 29, 2012 9:41
Forum: Tips and Tricks
Topic: Opengl clock ~ screensaver - Windows
Replies: 13
Views: 1744

Re: Opengl clock ~ screensaver - Windows

dodicat, you'll be happy to know I just tried the loop with sleep 1,1 and it also runs at 1% cpu.
by dafhi
Feb 29, 2012 3:04
Forum: Tips and Tricks
Topic: Opengl clock ~ screensaver - Windows
Replies: 13
Views: 1744

Re: Opengl clock ~ screensaver - Windows

The only thing sleep does, as far as I know, is hand over control back to the OS so other processes can march, as you say.

[Edit:] before and after performance is 18% and 1%
1.9Ghz Athlon X2 G-Force 8200 M Windows 8 (Dev Preview)
by dafhi
Feb 29, 2012 1:28
Forum: Tips and Tricks
Topic: Opengl clock ~ screensaver - Windows
Replies: 13
Views: 1744

Re: Opengl clock ~ screensaver - Windows

I changed the loop so it uses less CPU. Do t=Time If oldt<> t Then glClear (GL_COLOR_BUFFER_BIT) glbegin (gl_lines) gldraw_string(.05*xres,.08*yres,"Start " & starttime,digitcol(),xres/800) gldraw_string(.05*xres,.15*yres,_dow,dcol(),xres/500) gldigits(t,xres/2-.075*xres,yres/2+.2*yres...
by dafhi
Feb 27, 2012 8:49
Forum: General
Topic: field within union possible?
Replies: 14
Views: 1073

Re: field within union possible?

Found the solution I was hoping for .. the Union I actually had inside a type, so I am doing this Type SDS Field = 2 Union Type As UShort SD_BH As UInteger SD_A As UShort SD_BL End Type Type As UInteger D_A As UInteger D_B End Type ..
by dafhi
Feb 27, 2012 8:07
Forum: General
Topic: field within union possible?
Replies: 14
Views: 1073

Re: field within union possible?

I was hoping to avoid that route. Ah well. Thanks TJF
by dafhi
Feb 27, 2012 5:56
Forum: General
Topic: field within union possible?
Replies: 14
Views: 1073

field within union possible?

Compiler throws an error if I do this:

Code: Select all

Union
    Type Field = 2
        As UShort           t_BH
        As UInteger         t_A
        As UShort           t_BL
    End Type
    Type
        ...
by dafhi
Feb 24, 2012 15:10
Forum: Projects
Topic: Procedural block world project
Replies: 310
Views: 83883

Re: "Above" (procedural block world project thing)

Gonzo your cosnoise is unlike anything I have experienced.

Go to advanced search