max2d.mod - new render for bmx

BlitzMax Forums/BlitzMax Programming/max2d.mod - new render for bmx

mingw(Posted 2017) [#1]
Greetings!

Max2d.mod - New interface for rendering.

The basic module an advantage before the official: more possibilities in a simple interface.

The basic idea: TImage - now it is not certain textures container. This is a complete atlas of single image, allowing upload any image configuration generation time packers textures.

I have a helper class TImageLoader To download the atlas. An example of its use, see hgeFontLoader.mod module.

* Monkey-like matrix.
* Render to image (WIP)
* OpenGL (WIP)
* DirectX9 (Coming soon)
* Image picking
* Extended DrawPoly () with image
* REPEATEIMAGE flag for texture scrolling
* New Overlay blend
* (WIP) Drawing text using formatting tags
* ToDo: introduce *md3 file format for 2/5D graphics.

Archived 15 examples

* Work in progress

link: https://yadi.sk/d/Dul0HH8i36xQXa


RustyKristi(Posted 2017) [#2]
woah interesting. trying it out now.

btw, have you checked out Brucey's Mojo2 for blitzmax? Will this work on NG? I guess I have to find out..


RustyKristi(Posted 2017) [#3]
..and maybe you can remove the exes. thanks


coffeedotbean(Posted 2017) [#4]
all sound like good additions, shall bookmark and give them a whirl when I need decide on a new project, Matrix commands would be real useful.


mingw(Posted 2017) [#5]
RustyKristi

Mojo2 seemed to me not very convenient. And besides, I set the goal to create a classic renderer.

About NG ... yet I did not try.

Good. The next update will only upload the source code.


RustyKristi(Posted 2017) [#6]
Got it, which is a good idea. I'm still learning how Mojo2 works which has Monkey style code.

Yes would be nice to have NG, but I guess you won't have to bother extending it fully on cross-platform. SDL2.mod was specifically for that not to mention creating an OpenGLES driver for your max2d version.

btw Mojo2 for NG is already OpenGLES ready. :-)


RustyKristi(Posted 2017) [#7]
Getting some errors already rebuilding..

Building Modules
Compiling:directx9.bmx
Compile Error: Module does not match commandline module
[C:/BlitzMax2/mod/max2.mod/directx9.mod/directx9.bmx;4;23]
Build Error: failed to compile C:/BlitzMax2/mod/max2.mod/directx9.mod/directx9.bmx
Process complete



In directx9.bmx..

Import engine.directx9


Looks like a missing mod..