List of suggestions on improvement PureBASIC

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

List of suggestions on improvement PureBASIC

Post by Chrono Syndrome »

Taken from http://blitz.pp.ru/forum/showthread.php ... genumber=1

Code: Select all

2DDrawing:
 1) Result = DrawingDC()
    Returns the context of device for current Start/End drawing block
 2) Result = DrawingBufferSize()
    Returns size of drawing buffer.
 3) DrawingLineWidth(Width)
    Sets thickness of lines (for Line(), Circle(), Ellipse() and Box())
 4) Result = BitBlt(#Image, x, y, Width, Height [, Flags])
    Saves area of Drawing Buffer into specified Image.

Desktop:
 1) OutputID = DesktopOutput(#Desktop)
    Returns OutputID for drawing on the specified desktop.

Language syntax:
 1) Support of russian language
 2) "Then" operator
 3) MultiLine "C" comments (aka "/*   */ ")
 5) Unsigned types of variables
 6) Division of the code line ".."(aka BlitzMax) or "_"(aka VB)
 7) Import proc's from dynamic library - "ImportDLL : EndImportDLL" (aka Import : EndImport)

Misc:
 1) Result = CountArray(ArrayName())
    Returns the number of array elements
 2) Result$ = GetComputerName()
    Returns the name of a computer.

Library:
 1) Result.l = CatchLibrary(#Library, MemoryAddress)
    Loads the dynamic library from specified address of memory (aka LoadLibraryM() from PBOSL)

FileSystem:
 1) Result$ = GetSystemDirectory()
    Returns a path to the system directory.

Memory:
 1) EraseMemory(*MemoryID, Length)
    Erase the specified part of memory (aka ZeroMemory WINAPI)

Math:
 1) Result.f = LogBase(Number.f, Base.f)
    Returns the logarithm of Number on Base basis.

String:
 1) Value.c = GetChar(String$, Position) 
    Returns the ASCII number of symbol on specified position from the specified line.
 2) SetChar(String $, Position, Value.C) 
    Inserts the specified symbol in the specified line.

Movie:
 1) CatchMovie(#Movie, MemoryAddress)
    Loads a movie from the specified address of memory.
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

No objections for all this time? It is pleasant :) ...
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post by thamarok »

I have only on thing to say: Write PureBasic instead of PureBASIC, because the second one makes PB look like a DarkBASIC clone and DarkBASIC is PureSHIT :wink:
CadeX
Enthusiast
Enthusiast
Posts: 124
Joined: Mon Oct 02, 2006 2:56 pm
Location: Australia
Contact:

Post by CadeX »

thamarok wrote:I have only on thing to say: Write PureBasic instead of PureBASIC, because the second one makes PB look like a DarkBASIC clone and DarkBASIC is PureSHIT :wink:
Haha, yes, PurePwned.. I mean, Pwned.

No objections here.
Pro-Gamer, Programmer, Pro-Grammer
All_Creater
New User
New User
Posts: 1
Joined: Mon Sep 10, 2007 8:55 am
Location: Russia/Severodvinsk

Post by All_Creater »

I think that hardware Sprite3DColoring(BaseColor.l) (for correcting color of image...) can be useful for creating good GFX...My own command(for simple Sprite) works very slow because it is logical operation with array. :(
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I like all these suggested new extra commands. I would have thought that most of them would be quite quite to include?

Sprite colour palettes would be good.

Although I don't speak Russian, having a Russian translation would be especially good because there are lots of great Russian programmers.
naw
Enthusiast
Enthusiast
Posts: 573
Joined: Fri Apr 25, 2003 4:57 pm

Post by naw »

Hi, well strictly speaking BASIC is an acronymn for Beginners All-purpose Symbolic Instruction Code - so pureBASIC kind of makes sense....
Ta - N
Post Reply