-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand support for GL ES / WebGL compatible formats. (#2101)
* Add more WebGL / GLES supported formats * Add compressonator ETC formats to DDS loader * ETCFlipper description --------- Co-authored-by: SceneMax3D <[email protected]>
- Loading branch information
1 parent
9e71c73
commit 70f9da9
Showing
6 changed files
with
85 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
jme3-core/src/plugins/java/com/jme3/texture/plugins/ETCFlipper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.jme3.texture.plugins; | ||
|
||
import java.nio.ByteBuffer; | ||
import java.util.logging.Logger; | ||
|
||
import com.jme3.texture.Image.Format; | ||
|
||
/** | ||
* A place-holder for future implementation of ETC texture flipping. | ||
* | ||
*/ | ||
public class ETCFlipper { | ||
private static final Logger logger = Logger.getLogger(ETCFlipper.class.getName()); | ||
|
||
public static ByteBuffer flipETC(ByteBuffer img, int w, int h, Format format) { | ||
logger.warning("ETC texture flipping is not supported yet"); | ||
return img; | ||
} | ||
} |