Bshivam Advanced DirectX Framework[v1.3]

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
bshivam2001
Posts: 214
Joined: July 27th, 2013, 6:57 am
Location: India

Re: Chili Advanced DirectX Framework[UPDATE]

Post by bshivam2001 » January 24th, 2014, 4:02 pm

More Sound Functions added!
Check the v1.1 Project File
'If you can't make it good, at least make it look good'

User avatar
LuisR14
Posts: 1248
Joined: May 23rd, 2013, 3:52 pm
Location: USA
Contact:

Re: Chili Advanced DirectX Framework[UPDATE]

Post by LuisR14 » January 24th, 2014, 5:19 pm

heh, don't need to save the pause position and set it again, just call pBuffer->Play and it'll keep playing from where it left off :)
anyways, seems you surpassed me in adding the rest of audio stuff xD
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat :mrgreen: --

User avatar
bshivam2001
Posts: 214
Joined: July 27th, 2013, 6:57 am
Location: India

Re: Chili Advanced DirectX Framework[UPDATE]

Post by bshivam2001 » January 24th, 2014, 6:24 pm

LuisR14 wrote:heh, don't need to save the pause position and set it again, just call pBuffer->Play and it'll keep playing from where it left off :)
anyways, seems you surpassed me in adding the rest of audio stuff xD
hEhEhE, I thought that pBuffer->Stop() would reset its position to 0. Anyways, Thankz!
'If you can't make it good, at least make it look good'

Pindrought
Posts: 432
Joined: September 26th, 2013, 4:57 pm
Location: Kentucky
Contact:

Re: Chili Advanced DirectX Framework[UPDATE]

Post by Pindrought » January 30th, 2014, 7:57 am

Any luck on getting full screen using this method bshivam2001?
PM me if you need to contact me. Thanks to all the helpful people on this forum especially to Chili.

User avatar
bshivam2001
Posts: 214
Joined: July 27th, 2013, 6:57 am
Location: India

Re: Chili Advanced DirectX Framework[UPDATE]

Post by bshivam2001 » January 30th, 2014, 1:51 pm

Pindrought wrote:Any luck on getting full screen using this method bshivam2001?
Yes....but you need to change the backbuffer width and height to your windows resolution so that the screen doesn't appears stretched. Plus, you would need to change some other setting too.
If you want, I will add it soon.
'If you can't make it good, at least make it look good'

User avatar
LuisR14
Posts: 1248
Joined: May 23rd, 2013, 3:52 pm
Location: USA
Contact:

Re: Chili Advanced DirectX Framework[UPDATE]

Post by LuisR14 » January 30th, 2014, 1:57 pm

i had given code to toggle the windowed/fullscreen state of the window in a PM to thetoddfather (which i can post here if wanted :P)
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat :mrgreen: --

User avatar
bshivam2001
Posts: 214
Joined: July 27th, 2013, 6:57 am
Location: India

Re: Chili Advanced DirectX Framework[UPDATE]

Post by bshivam2001 » January 30th, 2014, 2:27 pm

Yeah...Surely would Help a lot of people struggling to switch to fullscreen!
'If you can't make it good, at least make it look good'

Pindrought
Posts: 432
Joined: September 26th, 2013, 4:57 pm
Location: Kentucky
Contact:

Re: Chili Advanced DirectX Framework[UPDATE]

Post by Pindrought » January 31st, 2014, 7:16 pm

LuisR14 wrote:i had given code to toggle the windowed/fullscreen state of the window in a PM to thetoddfather (which i can post here if wanted :P)
That would be great
PM me if you need to contact me. Thanks to all the helpful people on this forum especially to Chili.

User avatar
bshivam2001
Posts: 214
Joined: July 27th, 2013, 6:57 am
Location: India

Re: Chili Advanced DirectX Framework[UPDATE]

Post by bshivam2001 » January 31st, 2014, 7:28 pm

Pindrought wrote:
LuisR14 wrote:i had given code to toggle the windowed/fullscreen state of the window in a PM to thetoddfather (which i can post here if wanted :P)
That would be great
I figured out the code:
Change the following things in D3DGraphics::D3DGraphics Function D3DGraphics.cpp:

Code: Select all

d3dpp.Windowed = FALSE;  //Set to false to make it fullscreen and not windowed
d3dpp.BackBufferFormat = D3DFMT_A8R8G8B8; //Make sure you change this, or you get assertion error
d3dpp.BackBufferWidth = 1366; //Your screen width
d3dpp.BackBufferHeight = 768; //Your screen width
'If you can't make it good, at least make it look good'

Pindrought
Posts: 432
Joined: September 26th, 2013, 4:57 pm
Location: Kentucky
Contact:

Re: Chili Advanced DirectX Framework[UPDATE]

Post by Pindrought » January 31st, 2014, 8:06 pm

bshivam2001 wrote:
Pindrought wrote:
LuisR14 wrote:i had given code to toggle the windowed/fullscreen state of the window in a PM to thetoddfather (which i can post here if wanted :P)
That would be great
I figured out the code:
Change the following things in D3DGraphics::D3DGraphics Function D3DGraphics.cpp:

Code: Select all

d3dpp.Windowed = FALSE;  //Set to false to make it fullscreen and not windowed
d3dpp.BackBufferFormat = D3DFMT_A8R8G8B8; //Make sure you change this, or you get assertion error
d3dpp.BackBufferWidth = 1366; //Your screen width
d3dpp.BackBufferHeight = 768; //Your screen width
Awesome thanks Bshivam. Only one problem i'm running into. If I minimize while in full screen, and restore the game window, it doesn't seem to work. I just get a black screen for my window after minimizing. Any idea what i'm doing wrong?
PM me if you need to contact me. Thanks to all the helpful people on this forum especially to Chili.

Post Reply