Recently, a scientific research topic called Texture Synthesis (seamless texture synthesis) is proposed to solve the problems such as seams in texture ing, that is, seamless textures can be done using Photoshop, this is a program to generate seamless textures. It is a 3D design or a necessary algorithm for development. Part of this is the c ++ implementation. I only use Microsoft. net Framework, what should I do?
Using MFC? It is unwise. The best way is to host C ++ and non-hosted C ++ for mutual access.
Development Tool Microsoft Visual Studio 2008 Express (VC ++ 2008 express), of course, VC ++ 2005 can also
Key Code: (add the header file)
# Using <mscorlib. dll>
Then you can enjoy the advantages of hosting C ++ and non-hosting C ++.
For basic types, such
Int A = 4;
System: int B = 4;
A = B;
B =;
For string, the string can be:
// String example;
Char examplefile [900] = "";
Int I = 0;
For each (char C in example)
{
Examplefile [I] = C;
I = I + 1;
}
Note: The C ++ implementation does not use Unicode, and the string cannot contain Chinese characters. Otherwise, a strange problem occurs.
Example: Texture Synthesis http://download.csdn.net/source/457002