473,657 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing CreateQuad() defined Texture - D3D

hey - i am developing a game editor in C++/DX and have encountered a
problem.

when i create map sturcture array (like below) to represent tile
textures:

o,1,o,
1,1,o,
1,1,1,
1,1,o,
o,1,o,

it then replaces the numbers with textures in another struct array and
goes to perform animation etc. I need it to change the texture in the
appropriate tile when the LMB is clicked (left mouse button) BUT when
i run CreateQuad again on the tile in question it flags an error (VC++
6.0) - does anyone know of a solution to this?

Xpy
new google group - Computer Game Development
Jul 23 '05 #1
3 1706
Xpyder wrote:
hey - i am developing a game editor in C++/DX and have encountered a
problem.

when i create map sturcture array (like below) to represent tile
textures:

o,1,o,
1,1,o,
1,1,1,
1,1,o,
o,1,o,

it then replaces the numbers with textures
The "structure array" contains small letters 'o', which are not numbers.
That's just BTW.
in another struct array and
goes to perform animation etc. I need it to change the texture in the
appropriate tile when the LMB is clicked (left mouse button) BUT when
i run CreateQuad again on the tile in question it flags an error (VC++
6.0) - does anyone know of a solution to this?


Try a newsgroup where at least one of the things here you named (texture,
animation, LMB, CreateQuad) is on topic. Begin with DirectX newsgroup,
then proceed to Windows OS one, then probably to Visual C++. There is
also a host of game newsgroups, comp.games.deve lopment.*...

Your post does not contain a C++ language question and comp.lang.c++ just
happens to be a C++ language newsgroup, I hope you understand why it is
off-topic.

V
Jul 23 '05 #2
yes i understand why you think that, but DX is an api designed with C++
in mind and is used in conjunction with it

Jul 23 '05 #3
Xpyder wrote:
yes i understand why you think that, but DX is an api designed with C++
in mind and is used in conjunction with it


Yes, but C++ is not designed with DX in mind and _most_often_ used without
it. That's why you should post to a DX newsgroup and not C++ one.
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5025
by: Mark L | last post by:
I am trying to create a graphics engine using OpenGL and PHP. I am currently trying to create a completly white texture to test out the texturing capabilities. My idea is to create an array 256x256x3 of the value 255 to create a completely white texture. When I do this in C it works fine but in PHP I get a array of red, blue, green and black lines texturing the cube. I have built a webpage detailing this problem:...
6
9469
by: John Ortt | last post by:
Hi there everyone, I have a part info form which has a faded image of our company logo as a background. I want to replace the faded image with a bright red warning image on items which have run out of purchasing cover. I am nearly there, the only problem is that the code below only changes the image background for text and combo-box backgrounds, it doesn't apply it to the whole form.
1
3212
by: Myk Quayce | last post by:
I have a four-sided polygon that rotates and zooms as the user moves the mouse. Is there a way to incorporate a texture-mapped image without DirectX? The GDI+ doesn't seem to support this. -- Myk Quayce "If we can't be free, at least we can be cheap." - Frank Zappa
0
1078
by: Doug | last post by:
Any idea what I’m doing wrong? I have a nasty memory leak when I reload textures. I can’t seem to unload them. Here’s a sample snippet that demonstrates the problem. while(true) { dummy = TextureLoader.FromFile( mDevice, “someTexture.tga” ); dummy.Dispose(); GC.Collect(); }
0
4370
by: Kuba Florczyk | last post by:
Hi I'am working on a 3D realtime "video" mixer. For now everything is ok i made video/images/sound mixing in 3D space. But now i draw flash movie on a texture. My question is: how do it? I've got two options: - write directshow filter for SWF files (maybe somebody saw something like
2
1673
by: =?ISO-8859-2?Q?Rafa=B3?= Maj | last post by:
Say we have a class Model (a 3d model) and class Texture (representing an Texture). Model have a texture, Model can be Drawed. Texture have method that returns data needed for drawing. class Texture { public: // openGl data here glInt GetInt();
0
1458
by: ...:::JA:::... | last post by:
Hello, Is there any real easy example for loading an texture in your directpython window??? For example this is my code: # loading directpython modules import d3dx import d3d from d3dc import *
7
2095
by: colin | last post by:
Hi, Ive written a 3dmodel editor, and it works fairly well it harldy uses any cpu exept when its loading a texture from bitmap in the debugger, at all other times it hardly uses any cpu but from the debugger even in release mode it takes a second or so to load a 65k texture, with a 2ghz pc this is 10k instructions per pixel ! I cant understand what its doing here, can anyone shed any light on this ? I have the d3d debug turned off...
0
1554
by: brixton | last post by:
Hello, I've got the following code that creates a texture from a .RAW file: GLuint MyGLCanvas::LoadTextureRAW( const char * filename, int wrap ) { GLuint texture; int width, height; BYTE * data; FILE * file;
0
8420
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8324
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.