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"

Including OpenGLDrv module in plugin

I'm trying to include the OpenGLDrv module into a plugin as I need to access its classes directly.

I've tried adding it to my build script

 namespace UnrealBuildTool.Rules
     public class Example: ModuleRules
         public ExamplePlugin(TargetInfo Target)
             AddThirdPartyPrivateStaticDependencies(Target, "Example");
                 new string[]
                     // ... add other public dependencies that you statically link with here ...

Then I add OpenGLWindows.h to my includes using with "Private/Windows/OpenGLWindows.h". Which give me the error

Error 1 error C1083: Cannot open include file: 'GL/glcorearb.h': No such file or directory ...Engine\Source\Runtime\OpenGLDrv\Private\Windows\OpenGLWindows.h 15 1 UE4

These are the includes in OpenGLWindows.h

 #include "Windows/MinWindows.h"
 #include "AllowWindowsPlatformTypes.h"
     #include <GL/glcorearb.h>
     #include <GL/glext.h>
     #include <GL/wglext.h>
 #include "HideWindowsPlatformTypes.h"

Product Version: UE 4.9
more ▼

asked Dec 04 '15 at 11:14 AM in C++ Programming

avatar image

31 3 8 12

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

1 answer: sort voted first
more ▼

answered Feb 03 '16 at 07:21 PM

avatar image

111 2 4 6

(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