Search found 57 matches

by Philippe-felixer76
Fri Oct 26, 2007 9:45 am
Forum: Coding Questions
Topic: irrlicht - questions
Replies: 4
Views: 2791

Height map

Hi Phil ;)

About Terrain:
The Terraindimension is the Dimension of your heightmapimagefile^2 multiplied by your nodescale as mike said.

Alternatively where Get and Set height Functions are available one can use The TlT ( TiledTerrain) functions ( which i am playing around currently to docu for ...
by Philippe-felixer76
Tue Oct 02, 2007 12:14 pm
Forum: Coding Questions
Topic: Detect OS name
Replies: 8
Views: 1626

Re: Detect OS name

is there a way to detect the os name, some procedure like:
if GetOSName() = "Windows XP"
MessageRequester("", "Your are using XP")
else
MessageRequester("", "Your are not using XP")
endif

Good question, OSVersion is handy and gives one of the following:

#PB_OS_Windows_NT3_51
#PB_OS_Windows_95 ...
by Philippe-felixer76
Fri Sep 14, 2007 7:35 am
Forum: General Discussion
Topic: Calculate age procedure
Replies: 13
Views: 5787

AGE procedure ..

Hehehe
I did something similar like this some time ago, think I was too tired or something but I could never it 100% correct when calculating the persons age.

Can't you use the calendar gadget for that? Not sure though, haven't used that much myself.


Procedure dagen(maand)
date$ = FormatDate ...
by Philippe-felixer76
Tue Jun 26, 2007 9:57 pm
Forum: Coding Questions
Topic: Converting from C to PB
Replies: 17
Views: 3835

Re: :P

traumatic wrote:Well, Philippe-felixer76, I'm not utterly sure about the latter but.... yes :)
It will at least make a bit of the world a better place to live :P
by Philippe-felixer76
Tue Jun 26, 2007 8:57 pm
Forum: Coding Questions
Topic: Converting from C to PB
Replies: 17
Views: 3835

Re: :P

:P Was your motivation also to get porting from C to PB easyer?
Not really, i just saw it is useful.

Thats a fact! :P

It also makes porting C headers a lot easy'er,
and makes adding purebasic user libs easy'er,
and makes purebasic more and more powerfull,
and makes all purebasic users and ...
by Philippe-felixer76
Tue Jun 26, 2007 8:08 pm
Forum: Coding Questions
Topic: Converting from C to PB
Replies: 17
Views: 3835

:P

:P Was your motivation also to get porting from C to PB easyer?
by Philippe-felixer76
Tue Jun 26, 2007 5:09 pm
Forum: Coding Questions
Topic: Converting from C to PB
Replies: 17
Views: 3835

why not use a linear array in the struct and calculate line and row, e.g. by a Macro?

Macro BiCoord5( BCRow, BCLine )
( 5 * BCLine + BCRow )
EndMacro

Structure Puit
Narf.c[25]
EndStructure

Define Fjord.Puit

Fjord\Narf[BiCoord5(2,3)] = 42

Debug Fjord\Narf[BiCoord5(2,3)]

YES, Great solution ...
by Philippe-felixer76
Tue Jun 26, 2007 3:49 pm
Forum: Coding Questions
Topic: Converting from C to PB
Replies: 17
Views: 3835

Why isn't it possible to use dim foo.l(5,5) in a structure..
Multidimensional arrays in structures aren't supported (by now).


You could however work around this limitation something like this:

Structure something_
a.c[5]
EndStructure

Structure something
b.something_[5]
EndStructure


Yes ...
by Philippe-felixer76
Tue Jun 26, 2007 11:58 am
Forum: Coding Questions
Topic: Converting from C to PB
Replies: 17
Views: 3835

traumatic wrote:Actually UINT8 is defined as unsigned char, so .c (or .b &$FF) would be correct.
Tnx for the reply, you PB freaks :P
by Philippe-felixer76
Tue Jun 26, 2007 11:56 am
Forum: Coding Questions
Topic: Converting from C to PB
Replies: 17
Views: 3835

Inner wrote:foo.l[5*5]
Thats a bit smart .. but you will get into trouble
later on using functions from the DLL..

uint8 is a byte i believe.

Why isn't it possible to use dim foo.l(5,5) in a structure..
by Philippe-felixer76
Tue Jun 26, 2007 6:53 am
Forum: Coding Questions
Topic: Converting from C to PB
Replies: 17
Views: 3835

Converting from C to PB

Anybody know how to convert this to PB:

struct something
{
uint8 year[5][5]
}

?
by Philippe-felixer76
Sat May 26, 2007 11:19 am
Forum: General Discussion
Topic: ffmpeg / libavcodec
Replies: 52
Views: 35169

Brosco wrote:If you do that - could you send me the DLLs you create and the C .h files so that I can convert them to pascal. That way we would both be working on the same version.

BTW you have a PM (this forum doesn't jump them out at you)

Brosco
Hi Brosco,

i send you a mail!

Bye!
by Philippe-felixer76
Thu May 24, 2007 10:45 pm
Forum: General Discussion
Topic: ffmpeg / libavcodec
Replies: 52
Views: 35169

Re: A little bit further ..

Hi,

I converted more structures from the header files, now it
works better.

I can open a media file and get lot's of info, then i can
pre-buffer everything also.

The problem is, the width/height are totally wrong,
so i guess i didn't convert the header/structures right.


Hi Philippe,

I'm a ...
by Philippe-felixer76
Sun May 20, 2007 7:48 pm
Forum: General Discussion
Topic: ffmpeg / libavcodec
Replies: 52
Views: 35169

Libavcodec / libavformat DLL usage in PB

Thanks for getting into this :-)
I did some things in PB using Libavcodec some time ago ... last year.


Debug "Filename: "+a$ ; WHY WE MISS THE FIRST LETTER!!!!! Hmmmm .
This issue in combination with the wrong width/height outputs does clearly show that theres something wrong in your ...