Hello, i'm trying to find the best way to init in c++, i'v tryed
pointing _HAL -_REF&32...
what is better? (i'm using the most simple init possible)
void initD3D(HWND hWnd)
{
d3d = Direct3DCreate9(D3D_SDK_VERSION); // create the Direct3D
interface
D3DPRESENT_PARAMETERS d3dpp; // create a struct to hold various
device information
ZeroMemory(&d3dpp, sizeof(d3dpp)); // clear out the struct for
use
d3dpp.Windowed = TRUE; // program windowed, not fullscreen
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; // discard old frames
d3dpp.hDeviceWindow = hWnd; // set the window to be used by
Direct3D
// create a device class using this information and the info from
the d3dpp stuct
d3d->CreateDevice(D3DADAPTER_DEFAULT,
D3DDEVTYPE_HAL,
hWnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&d3dpp,
&d3ddev);
return;
}
thanks for the help :) 4 1949
Jax50 wrote:
Hello, i'm trying to find the best way to init in c++, i'v tryed
pointing _HAL -_REF&32...
what is better? (i'm using the most simple init possible)
void initD3D(HWND hWnd)
Another windows question? Try a more topical group.
--
Ian Collins.
Jax50 wrote:
Hello, i'm trying to find the best way to init in c++, i'v tryed
pointing _HAL -_REF&32...
what is better? (i'm using the most simple init possible)
void initD3D(HWND hWnd)
{
d3d = Direct3DCreate9(D3D_SDK_VERSION); // create the Direct3D
interface
D3DPRESENT_PARAMETERS d3dpp; // create a struct to hold various
device information
ZeroMemory(&d3dpp, sizeof(d3dpp)); // clear out the struct for
use
d3dpp.Windowed = TRUE; // program windowed, not fullscreen
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; // discard old frames
d3dpp.hDeviceWindow = hWnd; // set the window to be used by
Direct3D
// create a device class using this information and the info from
the d3dpp stuct
d3d->CreateDevice(D3DADAPTER_DEFAULT,
D3DDEVTYPE_HAL,
hWnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&d3dpp,
&d3ddev);
return;
}
thanks for the help :)
we are not discussing dx9 here, please try to post at a more suitable
place.
On Jan 6, 11:05*pm, asm23 <asmwarr...@gmail.comwrote:
Jax50 wrote:
Hello, i'm trying to find the best way to init in c++, i'v tryed
pointing _HAL -_REF&32...
what is better? (i'm using the most simple init possible)
void initD3D(HWND hWnd)
{
* * d3d = Direct3DCreate9(D3D_SDK_VERSION); * *// create the Direct3D
interface
* * D3DPRESENT_PARAMETERS d3dpp; * *// create a struct to hold various
device information
* * ZeroMemory(&d3dpp, sizeof(d3dpp)); * *// clear out the struct for
use
* * d3dpp.Windowed = TRUE; * *// program windowed, not fullscreen
* * d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; * *// discard old frames
* * d3dpp.hDeviceWindow = hWnd; * *// set the window to be used by
Direct3D
* * // create a device class using this information and the info from
the d3dpp stuct
* * d3d->CreateDevice(D3DADAPTER_DEFAULT,
* * * * * * * * * * * D3DDEVTYPE_HAL,
* * * * * * * * * * * hWnd,
* * * * * * * * * * * D3DCREATE_SOFTWARE_VERTEXPROCESSING,
* * * * * * * * * * * &d3dpp,
* * * * * * * * * * * &d3ddev);
* * return;
}
thanks for the help :)
we are not discussing dx9 here, please try to post at a more suitable
place.- Hide quoted text -
- Show quoted text -
well, thats not a windows nor is it a dx9 question... my question was
about poniter to REF(32), just showed it as directx (vary simple
form). init _REF32. all i want to know is a (void *) _REF(32) will
still link with obj.(cannom test shows NULL**_REF). Thanks for all the
help
Jax50 wrote:
>
well, thats not a windows nor is it a dx9 question... my question was
about poniter to REF(32), just showed it as directx (vary simple
form). init _REF32. all i want to know is a (void *) _REF(32) will
still link with obj.(cannom test shows NULL**_REF). Thanks for all the
help
Neither _REF32, REF(32) or _REF(32) appear in your code, as we said, try
somewhere more topical.
--
Ian Collins. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bahadir.balban |
last post by:
Hi,
In my programming I do something like,
struct my_struct {
int data1;
int data1;
static void (* const my_privatefunc1) (my_struct * this)
static void (* const my_privatefunc2) (my_struct...
|
by: kiplring |
last post by:
I'm making a small program in a company.
I'm using win32, c#, Dx9 in VS.net 2003. What I'm making is a little
bit non-regular program.
It works find only when it is cross the Edge of Desktop....
|
by: mirage |
last post by:
Hi,
Actually, I use C# and WinForms to develop my littles applications.
Now, I want develop a game like Tetris or Pacman, and I am asking who is the
best API for me...
Some of you have Game...
|
by: Thibaut |
last post by:
Hi,
What are the recommended practices on how to use the __crt_dll_initialize()
and __crt_dll_terminate() calls described at
http://support.microsoft.com/?id=814472 in order to circumvent the...
|
by: Wylbur via DotNetMonster.com |
last post by:
Hello to all of you geniuses,
I'm having a problem trying to get an Init handler to fire for a Placeholder
control
at the initialization phase. I’ve posted this problem to 3 other ASP.NET...
|
by: David Isaac |
last post by:
What's the good way to produce a cumulative sum?
E.g., given the list x,
cumx = x
for i in range(1,len(x)):
cumx = cumx+cumx
What's the better way?
Thanks,
Alan Isaac
|
by: Alex C. Barberi |
last post by:
I just upgraded one of my projects from VB.NET 2002/DX9.0c to VB 2005/DX9 Feb
2006 and I am getting lots of errors like this one:
'Device' is ambiguous in the namespace 'Microsoft.DirectX.Direct3D'...
|
by: sherifffruitfly |
last post by:
Hi,
I'm just learning cpp, and the exercise I'm working on is basically as
follows:
1) Create a struct type with 4 members (char, char, char, int).
2) Create an array of, say 3 instances of...
|
by: seb |
last post by:
Hi,
I am using pygtk for the first times.
I am wondering what would be the best "pattern" to interface pygtk with
a thread.
The thread is collecting informations (over the network for...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |