Search found 12 matches

by EnigmaticProgrammer
Thu Aug 02, 2012 09:35
Forum: Help
Topic: Absolutely positioned root window does not work.
Replies: 6
Views: 5054

Re: Absolutely positioned root window does not work.

I'm working on this: http://ovgl.org Basically, a user of my API can create host windows then designate regions of a window as a render target and assign a camera to that render target which renders the scene from that view point. What I want is to allow users of my API to be able to add GUI to a re...
by EnigmaticProgrammer
Wed Aug 01, 2012 22:08
Forum: Help
Topic: Absolutely positioned root window does not work.
Replies: 6
Views: 5054

Re: Absolutely positioned root window does not work.

It was necessary to call notifyDisplaySizeChanged every frame since I am rendering to multiple windows with different sizes. By 'windows' you mean what we refer to as "host windows" right? The windows that contain the OpenGL rendered output, as opposed to CEGUI windows? Calling notifyDisp...
by EnigmaticProgrammer
Wed Aug 01, 2012 01:13
Forum: Help
Topic: Absolutely positioned root window does not work.
Replies: 6
Views: 5054

Re: Absolutely positioned root window does not work.

The documentation makes it clear that offset is a pixel offset but that is not at all how it is working. Please tell me what I am doing wrong?!

Figured it out. It was necessary to call notifyDisplaySizeChanged every frame since I am rendering to multiple windows with different sizes.
by EnigmaticProgrammer
Tue Jul 31, 2012 23:10
Forum: Help
Topic: Absolutely positioned root window does not work.
Replies: 6
Views: 5054

Absolutely positioned root window does not work.

When I set my root window's position and size like this: root->setPosition(CEGUI::UVector2(cegui_reldim(0.0f), cegui_reldim( 0.0f))); root->setSize(CEGUI::UVector2(cegui_reldim(1.0f), cegui_reldim( 1.0f))); It renders fine but when I set my position and size like this: root->setPosition(CEGUI::UVect...
by EnigmaticProgrammer
Tue Jul 31, 2012 12:24
Forum: Help
Topic: Nothing is rendering except the cursor.
Replies: 8
Views: 4660

Re: Nothing is rendering except the cursor.

The problem seems to be the interaction of the function I posted and the notifyDisplaySizeChanged function. If I call that function after rebuilding the frame buffers I don't see the windows anymore but I do see the cursor. EDIT: Problem resolved! I was deleting the render buffers like they were fra...
by EnigmaticProgrammer
Tue Jul 31, 2012 11:12
Forum: Help
Topic: Nothing is rendering except the cursor.
Replies: 8
Views: 4660

Re: Nothing is rendering except the cursor.

I should also mention I'm using OpenGL 3.3 now. I'm not sure if SFML 2.0 is using the core or compatibility profile though. It must be using compatibility profile, otherwise nothing would draw at all, not even the mouse cursor. As an aside, we do have a renderer for 3.2+ core profile, but that's on...
by EnigmaticProgrammer
Mon Jul 30, 2012 09:18
Forum: Help
Topic: Nothing is rendering except the cursor.
Replies: 8
Views: 4660

Re: Nothing is rendering except the cursor.

The "No window renderer factories..." thing is normal. Daft question first (sorry!): Are you calling the renderGUI function in a loop or one time only? From the information given, things should be working ok. What other rendering are you doing prior to the renderGUI call? Daft question ti...
by EnigmaticProgrammer
Mon Jul 30, 2012 04:42
Forum: Help
Topic: Nothing is rendering except the cursor.
Replies: 8
Views: 4660

Re: Nothing is rendering except the cursor.

I'm not sure if I'll be able to help cause I'm quite new too but posting your cegui.log would be undoubtedly helpful in solving the problem 8) . You should find it in your exe's directory. By the way if you can't move the mouse cursor you probably didn't read further parts of tutorial(injecting inp...
by EnigmaticProgrammer
Sun Jul 29, 2012 21:41
Forum: Help
Topic: Nothing is rendering except the cursor.
Replies: 8
Views: 4660

Nothing is rendering except the cursor.

I'm trying to get cegui working but all I see is the cursor sitting in the middle of the screen not moving or anything. I created windows but they are not being drawn. Here is my code: CEGUI::OpenGLRenderer::bootstrapSystem(); CEGUI::DefaultResourceProvider* rp = static_cast<CEGUI::DefaultResourcePr...
by EnigmaticProgrammer
Tue May 22, 2012 11:36
Forum: Help
Topic: Multiple Windows with CEGUI?
Replies: 5
Views: 4068

Re: Multiple Windows with CEGUI?

For OpenGL 3.x, much will depend on the context you're creating. If it's a compatible context, then all should be fine. If it's core profile, you will require the GL3 CEGUI renderer that exists in the current development code (mercurial default branch). I think for the scenario you describe, CEGUI ...
by EnigmaticProgrammer
Tue May 22, 2012 08:34
Forum: Help
Topic: Multiple Windows with CEGUI?
Replies: 5
Views: 4068

Re: Multiple Windows with CEGUI?

I am using version 0.7.6 of CEGUI and OpenGL 3.1. I am actually using a trick with only one render context or I guess two since I had to create a 1.1 OpenGL context to get a 3.1 context. Anyway, I then set the pixel format for each window I create to that of the opengl context and using MakeCurrent ...
by EnigmaticProgrammer
Tue May 22, 2012 00:52
Forum: Help
Topic: Multiple Windows with CEGUI?
Replies: 5
Views: 4068

Multiple Windows with CEGUI?

I'm using one base opengl render context created with a dummy window. I then have multiple windows and when I render to one of them I do this: wglMakeCurrent( Window->hDC, Base->hRC ); Is there a way to get CEGUI to work with this configuration? Also: CEGUI::OpenGLRenderer& myRenderer = CEGUI::O...

Go to advanced search