Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class def
- public ref class PixelFormatDescriptor
- {
- public:
- PixelFormatDescriptor();
- PixelFormatDescriptor(PIXELFORMATDESCRIPTOR *pfd);
- const PIXELFORMATDESCRIPTOR* operator*(System::Drawing::GLSharp::PixelFormatDescriptor ^p)
- {
- return m_pfd;
- }
- ***
- usage:
- PixelFormatDescriptor ^pfd = new PixelFormatDescriptor();
- ::ChoosePixelFormat(m_hdc, pfd);
- problem:
- ChoosePixelFormat expects pfd to be a const PIXELFORMATDESCRIPTOR *, how would i fix the operator overload?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement