-2

I don't exactly get the concept. Are they a set of api's to a library that accesses the hardware. If so is it possible for someone to create a brand new api like opengl and directx?

4

2 回答 2

1

The purpose of graphics API like OpenGL or DirectX is to provide a single graphics API to use across a wide range of hardware. In fact, a large portion of these APIs are actually implemented in the graphics drivers. If you were to design your own graphics API you would either have to make it run on almost entirely on the CPU ("in software") or to write special code for each type of graphics card you wanted to support.

于 2012-06-05T19:18:37.647 回答
0

is it possible for someone to create a brand new api like opengl and directx?

Yep. Just create a new Gallium state tracker.

于 2012-06-04T20:51:46.897 回答