Author Topic: Openb3d  (Read 4177 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Guest
Openb3d
« on: December 19, 2013, 01:56:38 AM »
Angelo Rosina (Angros47) has translated his OpenB3d headers for Oxygen. This is Blitz3D-like library.

The DLL is available here:

http://sourceforge.net/projects/minib3d/files/


Code: [Select]
  includepath "$inc\"

  $ FileName "t.exe"

  'include   "RTL32.inc"

  'include   "RTL64.inc"

  $ title    "Rotating Triangle"

  width=640

  height=480

  #include "OpenglSceneFrame.inc"
  includepath ""
  #include "openb3d.inc"


  int cube

  sub Initialize(sys hWnd)

  '=======================

  SetTimer hWnd,1,10,NULL
  Graphics3d 640,480,0,0,0
  cam=createcamera(0)
  cube=createcube(0)
  light=createlight(1,0)
  positionentity light,5,5,5,0
  moveentity cube,0,0,10 

  end sub

  '

  sub Scene(sys hWnd)

  '==================

  '

  turnentity cube,1,1,1,1

  renderworld

  end sub





  sub Release(sys hwnd)

  '====================

  killTimer hwnd, 1

  end sub




.

JRS

  • Guest
Re: Openb3d
« Reply #1 on: December 19, 2013, 02:54:17 AM »
I'm beginning to like Angelo more now that he is reaching out and expanding his horizons. He also sent me as a heads-up / link to the Irony and JSBasic projects. I hope this is a upcoming trend and other FB users realize the merit in using the O2 BASIC compiler.

I don't mean to sound ungrateful but adding a little color to the cube faces would be nice. It runs smooth under Wine using between 20-25 percent CPU resources.

I should have the ScriptBasic SDL_draw extension module working by tomorrow and hope to post a few examples. My goal with this is to provide SB a simple to use set of 2D graphic primitives that are SDL based.

The Aries Engine is my next SB / C BASIC adventure I hope to have done by the first of the year.


.
« Last Edit: December 19, 2013, 11:14:22 AM by John »

JRS

  • Guest
Re: Openb3d
« Reply #2 on: December 19, 2013, 01:31:55 PM »
Charles,

The openb3d.inc looks more C .h looking than a O2 include I have seen in the past. Is this allowed as a result of your C header file enhancements?

(use of int, float, ...)

If the above is true, can I now use these type definitions with DLLC?
« Last Edit: December 19, 2013, 04:06:13 PM by John »

Charles Pegge

  • Guest
Re: Openb3d
« Reply #3 on: December 20, 2013, 02:09:21 AM »
DLLC has its own simplified header parser, rather than a full C header parser. It would need something approaching C script.

Frankolinox

  • Guest
Re: Openb3d
« Reply #4 on: December 20, 2013, 03:53:34 AM »
I can't download the

" Download OpenB3D 0.7 for FB win32.zip (728.2 kB) "

zip file from linux machine here. it's possible somebody can do it for me here for testing? I only can see the zip file conent, but I cant download the zip folder, strange.
thanks in advance, frank

Charles Pegge

  • Guest
Re: Openb3d
« Reply #5 on: December 20, 2013, 10:19:15 AM »
Attached here:

.