Sign in to follow this  

I see a engine just a program that need the data.

This topic is 4547 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

so a engine is just like class. a class is module that need data to instance. in my previous thread: what is Direct3D. D3D is just API not a engine. maybe because it is not a complete code. so what is your opinion??

Share this post


Link to post
Share on other sites
an engine does things for you without you needing to know what.

just like a car, you turn the key and everything works (contrary to windows which is not an engine and doesn't work the way you want ;)), but you really don't need to know what, you just make sure to turn the key.

so basically what is an engine, an engine encapsulates functionality to relieve the programmer of repetative duties like sorting triangles and drawing in the right order, you tell it what to do and it performs it. but it can all vary, an engine doesn't need to make things simpler, could also give you more functionality etc.

engine = encapsulates functionality in more high-level style

so, Direct3D is in a way an engine as it encapsulate the features of the graphics cards into more useable functions, which would otherwise be quite tedious to do by yourself.

but engine is a pretty free word, you could do an "hello world" engine if you'd liked.

Share this post


Link to post
Share on other sites
Quote:
Original post by derek7
so a engine is just like class.

In some respects, yes. If you're talking pure OOP then an engine is (usually) an enclosed "object" that performs some common functionality. But bare in mind that an "engine" is a phenomenally complex piece of software, be careful when over-simplifying things [smile]

Quote:
Original post by derek7
in my previous thread: what is Direct3D. D3D is just API not a engine. maybe because it is not a complete code.

I admit I didn't read your previous thread...

There are layers of abstraction, different things for different purposes...

Hardware GPU -> Driver -> D3D -> Engine -> Application -> End User

For each layer in the above list you refine and specialise what can (or should) be done. An Engine is just another step in the process...

hth
Jack

Share this post


Link to post
Share on other sites
Quote:
Original post by jollyjeffers
There are layers of abstraction, different things for different purposes...

Hardware GPU -> Driver -> D3D -> Engine -> Application -> End User

For each layer in the above list you refine and specialise what can (or should) be done. An Engine is just another step in the process...


That is probably a more correct way of seeing it.

Share this post


Link to post
Share on other sites
Quote:
Original post by derek7
in my previous thread: what is Direct3D. D3D is just API not a engine. maybe because it is not a complete code.


You're right that it's not an engine, but it's not just an API. The "Direct3D API" is an API. Direct3D itself is a technology or library, with the primary task of abstracting away the graphics hardware. You /could/ write 3D rendering code that called the driver (or the hardware) directly, but then you'd have to write it for every driver and hardware combination out there, which is a near insurmountable task. The Direct3D library acts like an interpreter, converting a common language into something specific to the driver/hardware, and also as hardware itself, filling in for the graphics card when something isn't supported (for example, hardware T&L).

Share this post


Link to post
Share on other sites

This topic is 4547 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this