Search found 6766 matches

by D.J.Peters
Nov 17, 2017 20:06
Forum: Libraries
Topic: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)
Replies: 176
Views: 41719

Re: fbSound for Linux x86 Win32 (wav mp3 ogg mod it xm s3m)

Totally free means you can use it for commercial projects also :-)

Joshy
by D.J.Peters
Nov 17, 2017 12:52
Forum: Game Dev
Topic: A matter of perspective...
Replies: 25
Views: 537

Re: A matter of perspective...

...This will produce two different new verteces and I'll have a 4-sided polygon. Split the polygon in two triangles. Draw each triangle. Voilà! You are kidding me :-) Drawing result of the clipping statge as a N sided polygon is much faster than drawing the clipped result as 2 or 3 separate triangl...
by D.J.Peters
Nov 15, 2017 17:59
Forum: General
Topic: TYPES: Isolate and Copy the Base Type
Replies: 27
Views: 266

Re: TYPES: Isolate and Copy the Base Type

Type A extends object ID as long End Type Type B extends A ID as integer End Type Type C extends B declare property AID as long declare property AID(v as long) declare property BID as integer declare property BID(v as integer) ID as byte End Type property C.AID as long return base.base.id end prope...
by D.J.Peters
Nov 15, 2017 17:09
Forum: General
Topic: TYPES: Isolate and Copy the Base Type
Replies: 27
Views: 266

Re: TYPES: Isolate and Copy the Base Type

Type A extends object ID as long End Type Type B extends A ID as integer End Type Type C extends B ID as byte End Type dim myC as C cptr(A ptr,@myC)->ID=1 cptr(B ptr,@myC)->ID=2 myC.ID = 12 'what would be the base ID? print cptr(A ptr,@myC)->ID print cptr(B ptr,@myC)->ID print cptr(C ptr,@myC)->ID ...
by D.J.Peters
Nov 15, 2017 11:33
Forum: General
Topic: Copy a TYPE (object)
Replies: 5
Views: 78

Re: Copy a TYPE (object)

if you need a "deep" copy you can overload "=" with let.

by the way you can view the translated FreeBASIC program as C-code or as assembler listing

asignment of a struct is a memcpy(target,source,sizeof(user_type))

Joshy
by D.J.Peters
Nov 15, 2017 11:22
Forum: Community Discussion
Topic: Programming game contest.!
Replies: 5
Views: 171

Re: Programming game contest.!

Most devices can't view a "retro resolution" of 320x200 pixels with 16 colors in fullscreen to day.
Without a fullsscreen on a HD desktop 320x200 are to small to play or to see the game details.

Joshy
by D.J.Peters
Nov 14, 2017 17:21
Forum: Projects
Topic: RAD for Linux
Replies: 28
Views: 606

Re: RAD for Linux

On of the problems with C++ and FreeBASIC are: in a *.bi file: type QT_Button extends QT_Object ' <-- this is OK in FreeBASIC but type QT_Button extends QT_XYZ, QT_ABC, QT_Object ' <-- this won't work in FreeBASIC Same for FLTK C++ this is why I wrote the FLTK-C wrapper for FreeBASIC and we can use ...
by D.J.Peters
Nov 14, 2017 16:53
Forum: General
Topic: Public Access of Namespaced Identifiers
Replies: 2
Views: 61

Re: Public Access of Namespaced Identifiers

A namespace is primary to group things to gether or sepperate things from global module (name)space.

print mynamespace.mygroup.mything
mynamespace.mygroup.mything = 1

looks like you mean something this:
using mynamespace.mygroup
print mything
mything = 1

Joshy
by D.J.Peters
Nov 14, 2017 16:42
Forum: Game Dev
Topic: A matter of perspective...
Replies: 25
Views: 537

Re: A matter of perspective...

@xlucas I know what you mean for example: a cube has 8 points 6 polygon's (6 quads or 12 triangles) so all your scaling,moving and rotation works with this 8 points only but before you draw the faces you have to clip it clipping means if all points from the face are visible make only vertices from i...
by D.J.Peters
Nov 13, 2017 23:48
Forum: Libraries
Topic: Cannot find libgtksourceview-3.0.so (but is installed)
Replies: 5
Views: 88

Re: Cannot find libgtksourceview-3.0.so (but is installed)

try this: #inclib "gtksourceview-3.0"
by D.J.Peters
Nov 13, 2017 20:22
Forum: Beginners
Topic: 32 to 64
Replies: 38
Views: 474

Re: 32 to 64

@caseih
on 32-bit pointer+=8 are 32 bytes (first pixel after the image header)
on 64-bit pointer+=8 are 64 bytes and must end in a corrupt memory.

Joshy
by D.J.Peters
Nov 13, 2017 20:13
Forum: Beginners
Topic: 32 to 64
Replies: 38
Views: 474

Re: 32 to 64

@caseih see at my last post.

Joshy
by D.J.Peters
Nov 13, 2017 19:57
Forum: Beginners
Topic: 32 to 64
Replies: 38
Views: 474

Re: 32 to 64

I fixed and tested the 64-bit version with 3 cameras here are the download: AI_64b_fixed.zip In escapi.bi (I wrote it many years ago for 32-bit) you have to replace all integer with long and in the *bas file you have to replace CPtr(integer ptr,lpImage) with CPtr( ulong ptr,lpImage) thats all :-) Jo...
by D.J.Peters
Nov 13, 2017 19:23
Forum: Game Dev
Topic: A matter of perspective...
Replies: 25
Views: 537

Re: A matter of perspective...

Only for fun a short test of a moving nearplane :-) Joshy type V3 as single x,y,z end type ' camera near-plane clipping ' the nearplane normaly hard coded as 1 but for this demo implemented as param function ZClipNear(iP() as V3,nP as integer,oP() as V3,NearPlane as single=1.0) as integer dim as sin...

Go to advanced search