aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2006-11-08 00:21:13 +0000
committerChien Yang <[email protected]>2006-11-08 00:21:13 +0000
commit95d2d432722b486b3907d15169a4742a4dba0b7f (patch)
tree30df5df2281e0452984421818dd27211dafaf3e6
parent216530730b56aae165d5fd08468c06fb7ab8dd08 (diff)
Added in information on CubeMap doesn't support INT format (Issue 377)
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@743 ba19aa83-45c5-6ac9-afd3-db810772062c
-rw-r--r--src/native/d3d/D3dUtil.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/native/d3d/D3dUtil.cpp b/src/native/d3d/D3dUtil.cpp
index 55e6ded..8f3d4a0 100644
--- a/src/native/d3d/D3dUtil.cpp
+++ b/src/native/d3d/D3dUtil.cpp
@@ -12020,7 +12020,7 @@ void copyDataToCubeMap(jint imageFormat,
return;
}
int offset = tilew*imgYOffset + imgXOffset;
-
+
switch (imageFormat) {
case IMAGE_FORMAT_BYTE_RGBA :
// This is the one we use when byReference = false
@@ -12142,6 +12142,9 @@ void copyDataToCubeMap(jint imageFormat,
}
break;
case IMAGE_FORMAT_INT_BGR :
+ printf("[Java 3D] Cubemap doesn't support FORMAT_INT_BGR, \n");
+ printf("please see issue 377 : https://java3d.dev.java.net/issues/show_bug.cgi?id=377\n");
+ printf("For more information on reporting Java 3D related issue : https://java3d.dev.java.net/#Reporting_Issue \n");
// This is the one we use when byReference = false
if ((face == D3DCUBEMAP_FACE_NEGATIVE_Y) ||
(face == D3DCUBEMAP_FACE_POSITIVE_Y)) {
@@ -12158,7 +12161,6 @@ void copyDataToCubeMap(jint imageFormat,
// Copy the pixel from up to bottom and
// right to left in this case to match OGL definition
printf("[copyDataToCubeMap] copyInt_BGR_DataToSurfaceRev is unsupported!\n");
-
/*
copyInt_XBGR_DataToSurfaceRev(textureFormat, &ddpf,
(unsigned char *) lockedRect.pBits,
@@ -12170,6 +12172,10 @@ void copyDataToCubeMap(jint imageFormat,
}
break;
case IMAGE_FORMAT_INT_RGB :
+ printf("[Java 3D] Cubemap doesn't support FORMAT_INT_RGB!\n");
+ printf("please see issue 377 : https://java3d.dev.java.net/issues/show_bug.cgi?id=377\n");
+ printf("For more information on reporting Java 3D related issue : https://java3d.dev.java.net/#Reporting_Issue \n");
+
// This is the one we use when byReference = false
if ((face == D3DCUBEMAP_FACE_NEGATIVE_Y) ||
(face == D3DCUBEMAP_FACE_POSITIVE_Y)) {
@@ -12198,6 +12204,10 @@ void copyDataToCubeMap(jint imageFormat,
}
break;
case IMAGE_FORMAT_INT_ARGB :
+ printf("[Java 3D] Cubemap doesn't support FORMAT_INT_ARGB!\n");
+ printf("please see issue 377 : https://java3d.dev.java.net/issues/show_bug.cgi?id=377\n");
+ printf("For more information on reporting Java 3D related issue : https://java3d.dev.java.net/#Reporting_Issue \n");
+
// This is the one we use when byReference = false
if ((face == D3DCUBEMAP_FACE_NEGATIVE_Y) ||
(face == D3DCUBEMAP_FACE_POSITIVE_Y)) {
@@ -12226,7 +12236,7 @@ void copyDataToCubeMap(jint imageFormat,
}
break;
default: // should not happen
- printf("[Java 3D] StoredFormat %d, textureFormat %d not support !\n",
+ printf("[Java 3D] imageFormat %d, textureFormat %d not support !\n",
imageFormat, textureFormat);
}