Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UnrealEngine compatibility with OpenGL

I can only imagine UnrealEngine built using OpenGL. And even though I'm not sure it is made using OpenGL I really don't know any other way of making a program like this one, so... What kind of support does it allow for OpenGL ?

Or to be more precise... How and it which cases can I use OpenGL in my code ?

PS: I tried to use GLColor3f and GLColor4f instead of FColor, but it didn't work. Maybe because I need to include something ? What ? I want to know !

Product Version: Not Selected
more ▼

asked Aug 09 '14 at 09:32 AM in C++ Programming

avatar image

0 1 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Unless you are modifying the engine itself, you do not touch the low level stuff directly. That is, for rendering or input handling, you must try to do it through the Unreal Engine framework. The framework handles the low level stuff and calling the actual OpenGL or DirectX calls. GLColor3f is an OpenGL construct and Framework funcitons wont accept that.

So if you are not modifying your engine, you should stick with what the Engine framework has given you, in this case Fcolor

more ▼

answered Aug 09 '14 at 09:47 AM

avatar image

3.4k 154 52 271

avatar image Marron Aug 09 '14 at 10:28 AM

Well thanks I guess. I'll post another question about the framewrok because I don't want to mix 2 questions in one.

avatar image mindfane Aug 09 '14 at 02:35 PM

Keep in mind that my answer is only applicable if you are trying to build a normal multi-platform game using UE4. But, if you are working on a plugin or a game custom built and optimized for a particular platform, you need to work with lower level APIs. But I think you will need to compile from the engine source. But its better to get a second opinion.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question