Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / DB Functs V1 - DarkBasic plugin

Author
Message
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 7th May 2007 19:52 Edited at: 7th May 2007 23:47
This is my first DB plugin that actually does anything useful, so there may be a couple of bugs.

Here is the command list:
Quote: "
dbGradient : return byte = (byte colour1, byte colour2, byte gradient)
dbLock image : Int ID, int x, int y, int width, int height
dbUnlock image : Int ID
dbImage point32 : return dword = (Int ID, int x, int y)
dbGet image pointer : Int ID
dbVariable space : return dword = (*No parameters*)
dbGet window : return dword = (*No parameters*)
dbGet icon : return byte = (*No parameters*)
dbGet image pitch : return int = (Int ID)
dbImage locked : return boolean = (Int ID)
dbID internal image : return int = (Dword Index)
dbLocked image count : return dword = (*No parameters*)
dbLocked area left : return int = (Int ID)
dbLocked area top : return int = (Int ID)
dbLocked area right : return int = (Int ID)
dbLocked area bottom : return int = (Int ID)
dbImage dot32 : Int ID, dword colour, int x, int y, byte mode
dbSet object x : Float x
dbSet object y : Float y
dbSet object z : Float z
dbObject scale x : return float = (Int ID)
dbObject scale y : return float = (Int ID)
dbObject scale z : return float = (Int ID)
"


Its main feature is that you can now edit images very quickly, and with cool effects The image dot command is about 10 times faster than the DBPro bitmap dot command, even though the bitmaps were made for editing, and the images weren't (20,000 image dot commands with special effects takes <90ms)

One pretty random function, that I put in for the hell of it, was the dbVariable space function. It returns a pointer to the actual place in memory where DB stored all of your variables.

Help files and everything are included in the download, just extract it into your DBP folder

If you download it, please tell me what you think. (Please take into account this is my first proper plugin lol)

edit:
If your wondering why its called dbFuncts, my initials are DB

Attachments

Login to view attachments
Ron Erickson
Moderator
21
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Pittsburgh, PA, USA
Posted: 7th May 2007 20:42
Looks useful! Congrats on your first plugin creation!

Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 7th May 2007 20:46
Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 7th May 2007 23:34
I Downloaded your file and no plugin inside.
Only help and .ini ...

Gandalf said: "All we have to decide is what to do with the time that is given to us"
Odyssey-Creators - X-Quad Editor - 3DMapEditor
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 7th May 2007 23:47
@Freddix
I thought I'd forgotten something! Its fixed now

Alquerian
18
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 8th May 2007 21:04
Very cool Diggs I was finally able to use this now that I am done with my work, it is very useful. Good work

Visit the Wip!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 9th May 2007 04:12
Cool. Keep up the good work.

Cheers,

-db


What? You mean I cant sleep here???
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 10th May 2007 19:55
I'm considering adding pixel perfect collision to the plugin in the next version, that will (optionally) take into account position/rotation/scaling/minimum alpha for a collision to occur.

This may be too difficult, but I will have a go

Master Xilo
17
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 14th Jun 2007 13:43
it doesn't work for me "unexpected error"

Login to post a reply

Server time is: 2024-04-20 13:35:09
Your offset time is: 2024-04-20 13:35:09