| 50 |
private static bool LMheld = false; |
private static bool LMheld = false; |
| 51 |
private static bool RMheld = false; |
private static bool RMheld = false; |
| 52 |
private static bool MMheld = false; |
private static bool MMheld = false; |
| 53 |
|
private static bool loadTextures = true; |
| 54 |
|
|
| 55 |
private int OldMouseX = 0; |
private int OldMouseX = 0; |
| 56 |
private int OldMouseY = 0; |
private int OldMouseY = 0; |
| 80 |
private static Object mesh_synclock = new Object(); |
private static Object mesh_synclock = new Object(); |
| 81 |
public static IrrlichtNETCP.Quaternion Cordinate_XYZ_XZY = new IrrlichtNETCP.Quaternion(); |
public static IrrlichtNETCP.Quaternion Cordinate_XYZ_XZY = new IrrlichtNETCP.Quaternion(); |
| 82 |
|
|
| 83 |
|
private TextureManager textureMan = null; |
| 84 |
// experimental mesh code - only here temporarily - up top so it's visible |
// experimental mesh code - only here temporarily - up top so it's visible |
| 85 |
|
|
| 86 |
public Vector2D convVect2d(UVCoord uv) |
public Vector2D convVect2d(UVCoord uv) |
| 239 |
smgr = device.SceneManager; |
smgr = device.SceneManager; |
| 240 |
guienv = device.GUIEnvironment; |
guienv = device.GUIEnvironment; |
| 241 |
device.OnEvent += new OnEventDelegate(device_OnEvent); |
device.OnEvent += new OnEventDelegate(device_OnEvent); |
| 242 |
|
|
| 243 |
|
if (loadTextures) |
| 244 |
|
textureMan = new TextureManager(device, driver, "IdealistCache", avatarConnection); |
| 245 |
|
|
| 246 |
//guienv.AddStaticText("Hello World! This is the Irrlicht Software engine!", |
//guienv.AddStaticText("Hello World! This is the Irrlicht Software engine!", |
| 247 |
// new Rect(new Position2D(10, 10), new Dimension2D(200, 22)), true, false, guienv.RootElement, -1, false); |
// new Rect(new Position2D(10, 10), new Dimension2D(200, 22)), true, false, guienv.RootElement, -1, false); |
| 248 |
//Image img = |
//Image img = |
| 507 |
{ |
{ |
| 508 |
mts.AddTriangleSelector(trisel); |
mts.AddTriangleSelector(trisel); |
| 509 |
} |
} |
| 510 |
|
if (vObj.prim.Textures != null) |
| 511 |
|
{ |
| 512 |
|
if (vObj.prim.Textures.FaceTextures != null) |
| 513 |
|
{ |
| 514 |
|
Primitive.TextureEntryFace[] objfaces = vObj.prim.Textures.FaceTextures; |
| 515 |
|
for (int i2 = 0; i2 < objfaces.Length; i2++) |
| 516 |
|
{ |
| 517 |
|
if (objfaces[i2] == null) |
| 518 |
|
break; |
| 519 |
|
UUID textureID = objfaces[i2].TextureID; |
| 520 |
|
|
| 521 |
|
if (textureID != UUID.Zero) |
| 522 |
|
{ |
| 523 |
|
if (textureMan != null) |
| 524 |
|
textureMan.RequestImage(textureID, node); |
| 525 |
|
} |
| 526 |
|
} |
| 527 |
|
} |
| 528 |
|
} |
| 529 |
} |
} |
| 530 |
|
|
| 531 |
node.UpdateAbsolutePosition(); |
node.UpdateAbsolutePosition(); |
| 616 |
{ |
{ |
| 617 |
mts.AddTriangleSelector(trisel); |
mts.AddTriangleSelector(trisel); |
| 618 |
} |
} |
| 619 |
|
if (vObj.prim.Textures != null) |
| 620 |
|
{ |
| 621 |
|
if (vObj.prim.Textures.FaceTextures != null) |
| 622 |
|
{ |
| 623 |
|
Primitive.TextureEntryFace[] objfaces = vObj.prim.Textures.FaceTextures; |
| 624 |
|
for (int i2 = 0; i2 < objfaces.Length; i2++) |
| 625 |
|
{ |
| 626 |
|
if (objfaces[i2] == null) |
| 627 |
|
break; |
| 628 |
|
UUID textureID = objfaces[i2].TextureID; |
| 629 |
|
|
| 630 |
|
if (textureID != UUID.Zero) |
| 631 |
|
{ |
| 632 |
|
if (textureMan != null) |
| 633 |
|
textureMan.RequestImage(textureID, node); |
| 634 |
|
} |
| 635 |
|
} |
| 636 |
|
} |
| 637 |
|
} |
| 638 |
} |
} |
| 639 |
|
|
| 640 |
node.UpdateAbsolutePosition(); |
node.UpdateAbsolutePosition(); |
| 852 |
string lastName = string.Empty; |
string lastName = string.Empty; |
| 853 |
string password = string.Empty; |
string password = string.Empty; |
| 854 |
|
|
| 855 |
|
bool loadtextures = true; |
| 856 |
|
|
| 857 |
if (cnf != null) |
if (cnf != null) |
| 858 |
{ |
{ |
| 859 |
loginURI = cnf.GetString("login_uri", ""); |
loginURI = cnf.GetString("login_uri", ""); |
| 860 |
firstName = cnf.GetString("first_name", "test"); |
firstName = cnf.GetString("first_name", "test"); |
| 861 |
lastName = cnf.GetString("last_name", "user"); |
lastName = cnf.GetString("last_name", "user"); |
| 862 |
password = cnf.GetString("pass_word", "nopassword"); |
password = cnf.GetString("pass_word", "nopassword"); |
| 863 |
|
loadtextures = cnf.GetBoolean("load_textures", true); |
| 864 |
} |
} |
| 865 |
|
loadTextures = loadtextures; |
| 866 |
MainConsole.Instance = m_console; |
MainConsole.Instance = m_console; |
|
guithread = new Thread(new ParameterizedThreadStart(startupGUI)); |
|
|
guithread.Start(); |
|
| 867 |
|
|
| 868 |
avatarConnection = new SLProtocol(); |
avatarConnection = new SLProtocol(); |
| 869 |
avatarConnection.OnLandPatch += landPatchCallback; |
avatarConnection.OnLandPatch += landPatchCallback; |
| 873 |
avatarConnection.OnObjectUpdated += objectUpdatedCallback; |
avatarConnection.OnObjectUpdated += objectUpdatedCallback; |
| 874 |
avatarConnection.OnObjectKilled += objectKilledCallback; |
avatarConnection.OnObjectKilled += objectKilledCallback; |
| 875 |
|
|
| 876 |
|
guithread = new Thread(new ParameterizedThreadStart(startupGUI)); |
| 877 |
|
guithread.Start(); |
| 878 |
|
|
| 879 |
|
|
| 880 |
|
|
| 881 |
|
|
| 882 |
IrrlichtNETCP.Matrix4 m4 = new IrrlichtNETCP.Matrix4(); |
IrrlichtNETCP.Matrix4 m4 = new IrrlichtNETCP.Matrix4(); |
| 883 |
m4.SetM(0, 0, 1); |
m4.SetM(0, 0, 1); |