Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Very simple 2d and 3d graphics library

Tags:

c#

.net

graphics

3d

I have to create library that render static, simple shapes with some 3d effects such as rotation and bevels. Shapes can contains text or image on it. Something similar to this: enter image description here

I think that with GDI+ it will be hard to implement so is there any CLS compliant library that will help me with rendering?

P.S. I can not use WPF.

like image 731
Denis Palnitsky Avatar asked Mar 11 '11 16:03

Denis Palnitsky


People also ask

What is simple graphics library?

Simple Graphics Library (SGL) is an easy to use graphics library build in PHP. It is build upon the GD library distributed with PHP. SGL uses a flexibel design, used in many graphics engine libraries, to render all the graphics on screen. This makes it possible to do all kind of graphic manipulation.

Which library is used for graphics?

A graphics library is a program library designed to aid in rendering computer graphics to a monitor. This typically involves providing optimized versions of functions that handle common rendering tasks.

Can you do 3D in SFML?

SFML is used heavily in making games and even game engines. And even though SFML doesn't support 3D rendering yet it is used for context creation. Since OpenGL can't create a window, 3D graphics programmers use SFML (at least most of the time) for the task.

Is there a graphics library for C?

Most people use the gd library for rendering from C but you must implement the "math plotting" part.


2 Answers

Try to read the following stackoverflow page to choose the engine:

What to use? Tao, SharpGL, OpenTK, DirectX P/Invoke, XNA, MDX, SlimDX, Windows API Codec Pack

One example for the Tao framework with C# can be found in codeproject:
OpenGL 3D Navigation with Tao and C#

like image 95
SOUser Avatar answered Oct 11 '22 08:10

SOUser


You could try SFML: main page - features (includes bindings).

It's got a Shape primitive, is based on OpenGL rendering and includes support for shaders.

like image 31
jv42 Avatar answered Oct 11 '22 08:10

jv42