Page 1 of 1

List of suggestions on improvement PureBASIC

Posted: Thu Oct 05, 2006 9:01 am
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.

Posted: Sun Oct 15, 2006 1:33 pm
by Chrono Syndrome
No objections for all this time? It is pleasant :) ...

Posted: Sun Oct 15, 2006 2:36 pm
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:

Posted: Sun Oct 15, 2006 3:55 pm
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.

Posted: Mon Sep 10, 2007 9:40 am
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. :(

Posted: Wed Sep 12, 2007 10:22 am
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.

Posted: Thu Sep 13, 2007 3:58 pm
by naw
Hi, well strictly speaking BASIC is an acronymn for Beginners All-purpose Symbolic Instruction Code - so pureBASIC kind of makes sense....