Compare commits
441 Commits
Author | SHA1 | Date | |
---|---|---|---|
fa6ebda53f | |||
383331bb42 | |||
1a75484520 | |||
a11a6739c2 | |||
94e0ba9ec7 | |||
1770ad7280 | |||
d41c7ac33a | |||
396b6153af | |||
831ebec475 | |||
b0afc82d7d | |||
8659d3fb4a | |||
3c4ccd41fa | |||
475c66d2cc | |||
f8790a536a | |||
b549e862b0 | |||
203eda1d47 | |||
47b06d3255 | |||
e965a668a3 | |||
65b3dfa4a6 | |||
875a78a124 | |||
46e5c6a8ee | |||
2bd367a4dc | |||
49677da371 | |||
3850b22f7f | |||
db8fc561c3 | |||
9b79638f79 | |||
7596650a2d | |||
308050923b | |||
9d6c7d6a69 | |||
a20044bccc | |||
268e6abd65 | |||
87ca69bd14 | |||
63d29a508e | |||
e9a8630a3f | |||
c0ad0f4d31 | |||
a382ea5b21 | |||
26723de502 | |||
58617584d4 | |||
4ef408b591 | |||
592c8b8b0a | |||
b254961b22 | |||
d32f0e0173 | |||
701f8224dc | |||
7b031aa4bf | |||
d01d72f8e7 | |||
0d205015ae | |||
7aa0390f32 | |||
68e6cbdd40 | |||
fa062aa298 | |||
205f492e2e | |||
899a99a106 | |||
766edcb1a6 | |||
b37ca4498d | |||
9ad63e7f3a | |||
81336cc3e9 | |||
e9d44813d2 | |||
d4fbfd0ff4 | |||
4c7ff58885 | |||
a083337473 | |||
6bc3224fe7 | |||
7e2a9d1adb | |||
2d6fc0e304 | |||
d019cd7080 | |||
4cb60cc5ba | |||
9722101114 | |||
3f0bffaadf | |||
6e69560969 | |||
8f4ebf1d93 | |||
132443013a | |||
ac87eefa6d | |||
f705b2eaa1 | |||
6ade0e27b7 | |||
7e74261f92 | |||
57298c71c8 | |||
b06a6f46a5 | |||
63d6036e3a | |||
ab316deeaa | |||
f2fa0517b5 | |||
474239c784 | |||
77188a42ac | |||
57b99a1595 | |||
b2b367ef5f | |||
022944e49b | |||
27024253ce | |||
22bc0b949d | |||
ac0759efc8 | |||
94d0635285 | |||
634229a842 | |||
eb5556548d | |||
14faa8e564 | |||
2f12bfdb41 | |||
358bd0296e | |||
aa6cd0d2e5 | |||
83bdcb541c | |||
1d8d067caf | |||
15f5e19d40 | |||
63897b3ecc | |||
ac3f2d1794 | |||
bff3dab505 | |||
04bdc76749 | |||
3b4fcd0369 | |||
fea97461c5 | |||
897cc78397 | |||
0eb7c3eb71 | |||
20c5078e93 | |||
c784e03be5 | |||
803301ea89 | |||
fa4ba97f6d | |||
b130487c2a | |||
8ff802dac1 | |||
69e8641db5 | |||
d5a3c1d3a7 | |||
79360e6501 | |||
547c59e52f | |||
5473a89132 | |||
dca493b6c4 | |||
b6b47ff254 | |||
095737d863 | |||
9609d1e2fd | |||
d36f68fd66 | |||
d252888850 | |||
21af952fec | |||
778bdec4ba | |||
f1c943cd57 | |||
1248743859 | |||
fa468b04ab | |||
06c170b41b | |||
cb6c18efa4 | |||
d44a65c7b7 | |||
d08c9e61e3 | |||
8922ab86d6 | |||
6d843c78cf | |||
e46f48f0a3 | |||
f2d90ee844 | |||
23bfc1b514 | |||
035997bc2e | |||
086bf0343c | |||
97f17dc6d8 | |||
50a5d5967b | |||
78d48e62a9 | |||
2e9afac689 | |||
fa0800a24a | |||
0b3959e1a1 | |||
e98d795d2b | |||
d11d7a5f38 | |||
2ec37026be | |||
94401919b8 | |||
cbf4b2e3bf | |||
d8aec20022 | |||
e462e3ef58 | |||
9e7651e2d5 | |||
78fa1e785d | |||
149a50a26f | |||
18b3f8025e | |||
eb10483faf | |||
dc13d9e9d2 | |||
676a0b2908 | |||
9de43e7757 | |||
f0d9497e1f | |||
d87b7edd5f | |||
e15aa7a9bf | |||
2e96567459 | |||
8e586ca693 | |||
03c3fa42a8 | |||
dbdf9b6398 | |||
fcd296cd81 | |||
95811dfdff | |||
91e6bbe5c3 | |||
8c65e4c62d | |||
2364f539eb | |||
5081360073 | |||
3c0ab2d3f3 | |||
9c0658edca | |||
86b43e55c1 | |||
0b05255f90 | |||
17e01ed240 | |||
af9ba8ae90 | |||
4906642ac3 | |||
b68d428492 | |||
02709e1699 | |||
fe108af32e | |||
8b096b4186 | |||
5d19ff392a | |||
2952480d30 | |||
66d02325d8 | |||
69ff14a54c | |||
71d53e0d4e | |||
2643a62d4a | |||
144a8d6d4b | |||
11d04287c9 | |||
76a7adf83e | |||
8a837981b6 | |||
9ebcff93de | |||
ce8647c51d | |||
43b16d85f4 | |||
ad7a618222 | |||
765a0e394a | |||
1aac4215ff | |||
dfcf8ecf37 | |||
92d7ebded3 | |||
9302ee2cb0 | |||
28592e73a8 | |||
609db2639e | |||
b74cd8ec97 | |||
cd6f798b85 | |||
2338eeb4c0 | |||
b72a69f25c | |||
71b88deb2a | |||
0a290a64cc | |||
94dce3b623 | |||
659b684bf2 | |||
92db15b8d9 | |||
12bf7f9346 | |||
95b5e1decd | |||
4f098c4ff9 | |||
4fc1952539 | |||
5324156cc4 | |||
5f8cd22cdb | |||
993e853a5f | |||
a2f0e566c7 | |||
66c9729097 | |||
a607aadf32 | |||
8d99f2c6c4 | |||
f4cf5dd32c | |||
f99761c813 | |||
34d2631502 | |||
3265c36e14 | |||
3ee2c39be4 | |||
b2f59ea0d7 | |||
260097151d | |||
c21fa98ba5 | |||
eea2fce447 | |||
96b757130d | |||
c51f25f38d | |||
0bb3011f7f | |||
af5595c845 | |||
23b140416a | |||
4cbf43165c | |||
d6f6c1f1d4 | |||
1484c667a0 | |||
1f1afe0c33 | |||
5cf219a22e | |||
26283c8c25 | |||
49482d1441 | |||
c532ffb34e | |||
86ee333c02 | |||
199fc19277 | |||
1d4a2ea710 | |||
5f845513ee | |||
c1204bfb66 | |||
5225f4810f | |||
1e2567e4a3 | |||
8838b5220a | |||
bdf60f16a4 | |||
5d408c0aa4 | |||
ea42b83573 | |||
5ae77ae037 | |||
1c588e3311 | |||
4bbf62855c | |||
188d5043d8 | |||
09e46ead48 | |||
47df8ff7d6 | |||
a4356caefe | |||
f0bcbdca5c | |||
bd74a9ffc6 | |||
5d498d6824 | |||
5d80fb8219 | |||
2bd7db4244 | |||
25507428c2 | |||
df13c904b2 | |||
06bf4ea960 | |||
765a89951d | |||
19f872161e | |||
276c608f26 | |||
2c969b70a5 | |||
e8dc679874 | |||
47e8f23e9f | |||
83e249a1a0 | |||
9e881f28d1 | |||
ac7c017c35 | |||
da548fd03a | |||
9094756997 | |||
30b9545d75 | |||
1db253b243 | |||
50d80e3b81 | |||
e5736fcf92 | |||
1e0dea0738 | |||
cfdc731634 | |||
528b93ab14 | |||
39c291e2a6 | |||
5c60989043 | |||
f2c581dec1 | |||
f9753b649a | |||
11411bae2b | |||
42a641f0a5 | |||
b19cd63558 | |||
5bb6a54f61 | |||
82da6ea0a0 | |||
7b65595fe2 | |||
357b91a9b2 | |||
322dcd72c1 | |||
68cbe543b0 | |||
f08e2c4f64 | |||
e5ffd618f7 | |||
f233188963 | |||
c3bc24b165 | |||
caff2c9006 | |||
da503d2b3e | |||
adbb0c3338 | |||
cf62ecc199 | |||
4b08c20b0e | |||
c8bf853ba4 | |||
9ae9ec1975 | |||
8e074b2e28 | |||
757e372726 | |||
cf2b20dd43 | |||
fd6b8449bf | |||
035231a928 | |||
1454cbac14 | |||
3956d8a0c2 | |||
18ad53aa24 | |||
c09067e477 | |||
51a4fe7e2d | |||
e7f2d1e2bc | |||
56401d5f7d | |||
8cbd2c9ec6 | |||
77bfabca3b | |||
27f84c5caa | |||
a32d780347 | |||
d38b89edc7 | |||
0322f1b54a | |||
f6a39d6eab | |||
4fa93f8676 | |||
639f11d0b9 | |||
6e32d1e010 | |||
85db14f213 | |||
ac5f849e91 | |||
4783d5621e | |||
85b9c2b0c5 | |||
447634d263 | |||
f436a71479 | |||
e848645e88 | |||
78b55e1e37 | |||
3b0e0c3402 | |||
a19e25228f | |||
d8ed531e4c | |||
73851ab86f | |||
0cabfb6cfa | |||
1fafffd8af | |||
96f22f8cd4 | |||
558f7970b1 | |||
d2fbcc5259 | |||
0e5a1877a8 | |||
8e436b1d30 | |||
2f0fe5149f | |||
f744e700ae | |||
48f5dd4603 | |||
78bb864c14 | |||
7bc1eb6a29 | |||
f63abb3ef6 | |||
e8500dead4 | |||
2e1d1e70ae | |||
bc3299b78b | |||
d01bdaf370 | |||
d90b3d927b | |||
3e5c47d9fb | |||
6a667fff50 | |||
dfe081d32a | |||
acc02abaf1 | |||
8871fefe89 | |||
2543f4c9ed | |||
ac46c40b3e | |||
bcf0df2b49 | |||
8c7f54056c | |||
34cd266d8c | |||
9a9366cf4c | |||
8820c43175 | |||
18a3abf794 | |||
384f74ba39 | |||
7d75840398 | |||
8ea52efbf4 | |||
d86a89742e | |||
fd11f5e7ef | |||
dcfdabaee3 | |||
2d97ee9c03 | |||
14f49b6003 | |||
ea7dabc6b1 | |||
0878c0e967 | |||
a088ae5789 | |||
a52d3b7cdc | |||
307c418acc | |||
d0218cb18b | |||
c1f9c4df42 | |||
78d65e8368 | |||
18474cdb33 | |||
b7fbd1fc9b | |||
9de3298d6b | |||
568f34d838 | |||
e38e584db2 | |||
8655259379 | |||
7d65633f63 | |||
cb62c3c461 | |||
573cc1b371 | |||
9c6f6e143e | |||
126816ef72 | |||
2ca6e4a1bd | |||
b839b873e1 | |||
ab473f4ec5 | |||
f1ebbd4da6 | |||
ac79935c88 | |||
2aca4673ab | |||
43893d5d0f | |||
009eaf2aa6 | |||
fd2492670e | |||
7d88f4fa32 | |||
60022acaa7 | |||
a5faf51738 | |||
8365df0adf | |||
2d38f4fb2c | |||
3adf00b4b9 | |||
63897f3fe6 | |||
71f29a27f3 | |||
720be412fa | |||
8d361eee22 | |||
8d54d22cb2 | |||
782a127071 | |||
154e117e13 | |||
603d8ad1a2 | |||
bed4d78f6b | |||
d7f8fba7a7 | |||
e0a7e103c1 | |||
319ed6bac0 | |||
9e959d0191 | |||
53265596a3 | |||
ae24cb163d | |||
fb75d6065d | |||
ae744f88e6 | |||
5ac76b68c9 | |||
f2090df7a5 | |||
0a8de141a6 | |||
9aaee3ae16 |
@ -1,22 +1,26 @@
|
|||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
|
||||||
PROJECT(NV)
|
PROJECT(NV)
|
||||||
ENABLE_TESTING()
|
ENABLE_TESTING()
|
||||||
|
|
||||||
SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake")
|
SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake")
|
||||||
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")
|
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")
|
||||||
|
|
||||||
|
# GCC check (needs -std:c++11 flag)
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
ADD_DEFINITIONS("-std=c++11")
|
||||||
|
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
# gnuwin32 paths:
|
# gnuwin32 paths:
|
||||||
SET(GNUWIN32_PATH "${NV_SOURCE_DIR}/extern/gnuwin")
|
SET(GNUWIN32_PATH "${NV_SOURCE_DIR}/extern/gnuwin32")
|
||||||
SET(CMAKE_INCLUDE_PATH "${GNUWIN32_PATH}/include")
|
SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "${GNUWIN32_PATH}/include")
|
||||||
IF (NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${GNUWIN32_PATH}/lib")
|
||||||
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${GNUWIN32_PATH}/lib/win64")
|
|
||||||
ELSE(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
|
||||||
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${GNUWIN32_PATH}/lib/win32")
|
|
||||||
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
|
||||||
|
|
||||||
# Set GLUT path:
|
# Set GLUT path:
|
||||||
SET(GLUT_ROOT_PATH "${NV_SOURCE_DIR}/extern/glut")
|
SET(GLUT_ROOT_DIR "${NV_SOURCE_DIR}/extern/glut")
|
||||||
|
|
||||||
|
# Set FreeImage path:
|
||||||
|
SET(FREEIMAGE_ROOT_DIR "${NV_SOURCE_DIR}/extern/FreeImage")
|
||||||
|
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
@ -25,6 +29,11 @@ MESSAGE(STATUS "Setting optimal options")
|
|||||||
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
|
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
|
||||||
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
|
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
|
||||||
|
|
||||||
|
IF(CMAKE_BUILD_TYPE MATCHES "debug")
|
||||||
|
SET(CMAKE_DEBUG_POSTFIX "_d" CACHE STRING "Postfix for debug build libraries.")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
|
||||||
IF(NVTT_SHARED)
|
IF(NVTT_SHARED)
|
||||||
SET(NVCORE_SHARED TRUE)
|
SET(NVCORE_SHARED TRUE)
|
||||||
SET(NVMATH_SHARED TRUE)
|
SET(NVMATH_SHARED TRUE)
|
||||||
@ -37,9 +46,8 @@ ADD_SUBDIRECTORY(src)
|
|||||||
|
|
||||||
# These files should only be installed when creating packages.
|
# These files should only be installed when creating packages.
|
||||||
INSTALL(FILES
|
INSTALL(FILES
|
||||||
NVIDIA_Texture_Tools_LICENSE.txt
|
LICENSE
|
||||||
NVIDIA_Texture_Tools_README.txt
|
README.md
|
||||||
ChangeLog
|
|
||||||
DESTINATION share/doc/nvtt)
|
DESTINATION share/doc/nvtt)
|
||||||
|
|
||||||
# Add packaging support
|
# Add packaging support
|
||||||
@ -50,14 +58,23 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|||||||
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
|
||||||
SET(CPACK_PACKAGE_NAME "nvidia-texture-tools")
|
SET(CPACK_PACKAGE_NAME "nvidia-texture-tools")
|
||||||
|
SET(CPACK_PACKAGE_VERSION_MAJOR "2")
|
||||||
|
SET(CPACK_PACKAGE_VERSION_MINOR "1")
|
||||||
|
SET(CPACK_PACKAGE_VERSION_PATCH "0")
|
||||||
SET(CPACK_PACKAGE_VERSION "2.1.0")
|
SET(CPACK_PACKAGE_VERSION "2.1.0")
|
||||||
SET(CPACK_PACKAGE_CONTACT "Ignacio Casta<74>o <icastano@nvidia.com>")
|
SET(CPACK_PACKAGE_CONTACT "Ignacio Casta<74>o <castano@gmail.com>")
|
||||||
SET(CPACK_PACKAGE_VENDOR "NVIDIA Corporation")
|
#SET(CPACK_PACKAGE_VENDOR "NVIDIA Corporation")
|
||||||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GPU-accelerated Texture Tools with support for DirectX 10 texture formats")
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Texture processing tools with support for Direct3D 10 and 11 formats.")
|
||||||
|
|
||||||
SET(CPACK_PACKAGE_ICON "${NV_SOURCE_DIR}/project/vc8/nvcompress/nvidia.ico")
|
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${NV_SOURCE_DIR}/README.md")
|
||||||
|
SET(CPACK_RESOURCE_FILE_LICENSE "${NV_SOURCE_DIR}/LICENSE")
|
||||||
|
|
||||||
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${NV_SOURCE_DIR}/NVIDIA_Texture_Tools_README.txt")
|
# NSIS options:
|
||||||
SET(CPACK_RESOURCE_FILE_LICENSE "${NV_SOURCE_DIR}/NVIDIA_Texture_Tools_LICENSE.txt")
|
IF(WIN32)
|
||||||
|
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_VENDOR}\\\\NVIDIA Texture Tools 2.1")
|
||||||
|
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\NVIDIA Texture Tools 2.1")
|
||||||
|
SET(CPACK_PACKAGE_ICON "${NV_SOURCE_DIR}\\\\project\\\\vc8\\\\nvcompress\\\\nvidia.ico")
|
||||||
|
ENDIF(WIN32)
|
||||||
|
|
||||||
INCLUDE(CPack)
|
INCLUDE(CPack)
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
NVIDIA Texture Tools version 2.1.0
|
NVIDIA Texture Tools version 2.1.0
|
||||||
|
* Too many changes to list here.
|
||||||
* CTX1 CUDA compressor.
|
* CTX1 CUDA compressor.
|
||||||
* DXT1n CUDA compressor.
|
* DXT1n CUDA compressor.
|
||||||
* Support alpha premultiplication by Charles Nicholson. See issue 30.
|
* Support alpha premultiplication by Charles Nicholson. See issue 30.
|
||||||
@ -12,6 +13,11 @@ NVIDIA Texture Tools version 2.1.0
|
|||||||
* Added gnome thumbnailer by Frank Richter. Fixes issue 82.
|
* Added gnome thumbnailer by Frank Richter. Fixes issue 82.
|
||||||
* Cleanup sources removing files that are not strictly required.
|
* Cleanup sources removing files that are not strictly required.
|
||||||
|
|
||||||
|
NVIDIA Texture Tools version 2.0.7
|
||||||
|
* Output correct exit codes. Fixes issue 92.
|
||||||
|
* Fix thread-safety errors. Fixes issue 90.
|
||||||
|
* Add SIMD power method. Fixes issue 94.
|
||||||
|
|
||||||
NVIDIA Texture Tools version 2.0.6
|
NVIDIA Texture Tools version 2.0.6
|
||||||
* Fix dll version checking.
|
* Fix dll version checking.
|
||||||
* Detect CUDA 2.1 and future CUDA versions correctly.
|
* Detect CUDA 2.1 and future CUDA versions correctly.
|
||||||
@ -22,6 +28,9 @@ NVIDIA Texture Tools version 2.0.6
|
|||||||
* Fix nvzoom option typo by Frank Richter. Fixes issue 81.
|
* Fix nvzoom option typo by Frank Richter. Fixes issue 81.
|
||||||
* Do not use CUDA to compress small mipmaps. Fixes issue 76.
|
* Do not use CUDA to compress small mipmaps. Fixes issue 76.
|
||||||
* Compute mipmaps of semi-transparent images correctly.
|
* Compute mipmaps of semi-transparent images correctly.
|
||||||
|
* Shutdown CUDA properly. Fixes issue 83.
|
||||||
|
* Fix pixel format converions. Fixes issue 87.
|
||||||
|
* Update single color compression tables. Fixes issue 85.
|
||||||
|
|
||||||
NVIDIA Texture Tools version 2.0.5
|
NVIDIA Texture Tools version 2.0.5
|
||||||
* Fix error in single color compressor. Fixes issue 66.
|
* Fix error in single color compressor. Fixes issue 66.
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
NVIDIA Texture Tools 2.0 is licensed under the MIT license.
|
NVIDIA Texture Tools is licensed under the MIT license.
|
||||||
|
|
||||||
Copyright (c) 2007 NVIDIA Corporation
|
Copyright (c) 2009-2016 Ignacio Castano
|
||||||
|
Copyright (c) 2007-2009 NVIDIA Corporation
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person
|
Permission is hereby granted, free of charge, to any person
|
||||||
obtaining a copy of this software and associated documentation
|
obtaining a copy of this software and associated documentation
|
@ -1,187 +0,0 @@
|
|||||||
--------------------------------------------------------------------------------
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
NVIDIA Texture Tools
|
|
||||||
README.txt
|
|
||||||
Version 2.1
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
TABLE OF CONTENTS
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
I. Instructions
|
|
||||||
II. Contents
|
|
||||||
III. Compilation Instructions
|
|
||||||
IV. Using NVIDIA Texture Tools in your own applications
|
|
||||||
V. Known Issues
|
|
||||||
VI. Frequently Asked Questions
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
I. Introduction
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
The NVIDIA Texture Tools is a collection of image processing and texture
|
|
||||||
manipulation tools, designed to be integrated in game tools and asset
|
|
||||||
conditioning pipelines.
|
|
||||||
|
|
||||||
The primary features of the library are mipmap and normal map generation, format
|
|
||||||
conversion and DXT compression.
|
|
||||||
|
|
||||||
DXT compression is based on Simon Brown's squish library. The library also
|
|
||||||
contains an alternative GPU-accelerated compressor that uses CUDA and on some
|
|
||||||
GPUs is one order of magnitude faster.
|
|
||||||
|
|
||||||
You can obtain CUDA from our developer site at:
|
|
||||||
|
|
||||||
http://developer.nvidia.com/object/cuda.html
|
|
||||||
|
|
||||||
The source code of the Texture Tools is being released under the terms of
|
|
||||||
the MIT license.
|
|
||||||
|
|
||||||
The latest installer is available at the official website:
|
|
||||||
|
|
||||||
http://developer.nvidia.com/object/texture_tools.html
|
|
||||||
|
|
||||||
Documentation and additional information can be found at the development site:
|
|
||||||
|
|
||||||
http://code.google.com/p/nvidia-texture-tools/
|
|
||||||
|
|
||||||
|
|
||||||
II. Contents
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
This release contains only the source code of the texture compression library
|
|
||||||
and several command line applications that serve as examples of how to use the
|
|
||||||
library.
|
|
||||||
|
|
||||||
Documentation for the texture compression library is available at:
|
|
||||||
|
|
||||||
http://code.google.com/p/nvidia-texture-tools/wiki/ApiDocumentation
|
|
||||||
|
|
||||||
A brief description of the command line tools can be found at:
|
|
||||||
|
|
||||||
http://code.google.com/p/nvidia-texture-tools/wiki/CommandLineTools
|
|
||||||
|
|
||||||
|
|
||||||
III. Compilation Instructions
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
The compression library and the example can be compiled with Visual Studio 8 on
|
|
||||||
Windows using the following solution file:
|
|
||||||
|
|
||||||
project\vc8\nvtt.sln
|
|
||||||
|
|
||||||
On most other platforms you can also use cmake. For more information about
|
|
||||||
cmake, visit:
|
|
||||||
|
|
||||||
http://www.cmake.org/
|
|
||||||
|
|
||||||
On unix systems you can use the standard build procedure (assuming cmake is
|
|
||||||
installed on your system):
|
|
||||||
|
|
||||||
$ ./configure
|
|
||||||
$ make
|
|
||||||
$ sudo make install
|
|
||||||
|
|
||||||
|
|
||||||
IV. Using NVIDIA Texture Tools
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
To use the NVIDIA Texture Tools in your own applications you just have to
|
|
||||||
include the following header file:
|
|
||||||
|
|
||||||
src/nvimage/nvtt/nvtt.h
|
|
||||||
|
|
||||||
And include the nvtt library in your projects.
|
|
||||||
|
|
||||||
The following file contains a simple example that shows how to use the library:
|
|
||||||
|
|
||||||
src/nvimage/nvtt/compress.cpp
|
|
||||||
|
|
||||||
Detailed documentation of the API can be found at:
|
|
||||||
|
|
||||||
http://code.google.com/p/nvidia-texture-tools/wiki/ApiDocumentation
|
|
||||||
|
|
||||||
The usage of the commandline compression tool is the following:
|
|
||||||
|
|
||||||
$ nvcompress [options] infile [outfile]
|
|
||||||
|
|
||||||
where 'infile' is and TGA, PNG, PSD, DDS or JPG file, 'outfile' is a DDS file
|
|
||||||
and 'options' is one or more of the following:
|
|
||||||
|
|
||||||
Input options:
|
|
||||||
-color The input image is a color map (default).
|
|
||||||
-alpha The input image has an alpha channel used for transparency.
|
|
||||||
-normal The input image is a normal map.
|
|
||||||
-tonormal Convert input to normal map.
|
|
||||||
-clamp Clamp wrapping mode (default).
|
|
||||||
-repeat Repeat wrapping mode.
|
|
||||||
-nomips Disable mipmap generation.
|
|
||||||
-premula Premultiply alpha into color channel.
|
|
||||||
-mipfilter Mipmap filter. One of the following: box, triangle, kaiser.
|
|
||||||
|
|
||||||
Compression options:
|
|
||||||
-fast Fast compression.
|
|
||||||
-nocuda Do not use cuda compressor.
|
|
||||||
-rgb RGBA format
|
|
||||||
-bc1 BC1 format (DXT1)
|
|
||||||
-bc1n BC1 normal map format (DXT1nm)
|
|
||||||
-bc1a BC1 format with binary alpha (DXT1a)
|
|
||||||
-bc2 BC2 format (DXT3)
|
|
||||||
-bc3 BC3 format (DXT5)
|
|
||||||
-bc3n BC3 normal map format (DXT5nm)
|
|
||||||
-bc4 BC4 format (ATI1)
|
|
||||||
-bc5 BC5 format (3Dc/ATI2)
|
|
||||||
|
|
||||||
Output options:
|
|
||||||
-silent Do not output progress messages
|
|
||||||
-dds10 Use DirectX 10 DDS format
|
|
||||||
|
|
||||||
In order to run the compiled example on a PC that doesn't have Microsoft Visual
|
|
||||||
Studio 2003 installed, you will have to install the Microsoft Visual Studio 2003
|
|
||||||
redistributable package that you can download at:
|
|
||||||
|
|
||||||
http://go.microsoft.com/fwlink/?linkid=65127&clcid=0x409
|
|
||||||
|
|
||||||
|
|
||||||
V. Known Issues
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
None so far. Please file suggestions and bug reports at:
|
|
||||||
|
|
||||||
http://code.google.com/p/nvidia-texture-tools/issues/list
|
|
||||||
|
|
||||||
or contact us directly:
|
|
||||||
|
|
||||||
TextureTools@nvidia.com
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
VI. Frequently Asked Questions
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
=== Where can I ask questions? How can I get support? ===
|
|
||||||
You can ask questions about the usage of the Texture Tools at the [http://developer.nvidia.com/forums/index.php?showforum=9 NVIDIA developer forums]. You can report bugs and request new features in our [http://code.google.com/p/nvidia-texture-tools/issues/list issue database]. If you are a developer and have questions about the API or the source code, feel free to drop by the [http://groups.google.com/group/nvidia-texture-tools developer's mailing list]. If you would like to contact us privately, please send an email to [mailto:TextureTools@nvidia.com TextureTools@nvidia.com].
|
|
||||||
|
|
||||||
=== Why is feature XYZ not supported? ===
|
|
||||||
In order to keep the code small and reduce maintenance costs we have limited the features available in our new texture tools. For this reason, we have also open sourced the code, so that people can modify it and add their own custom features.
|
|
||||||
|
|
||||||
=== What platforms do the NVIDIA Texture Tools support? ===
|
|
||||||
The tools are compiled and tested regularly on Linux, OSX, and Windows. Some platforms are tested more frequently than others and there may be bugs on some uncommon configurations.
|
|
||||||
|
|
||||||
=== Is CUDA required? ===
|
|
||||||
No. The Visual Studio solution file contains a configuration that allows you to compile the texture tools without CUDA support. The cmake scripts automatically detect the CUDA installation and use it only when available.
|
|
||||||
|
|
||||||
Even if the texture tools are compiled with CUDA support it's possible to use them on systems that do not support CUDA or that do not have a valid CUDA driver installed.
|
|
||||||
|
|
||||||
=== Where can I get CUDA? ===
|
|
||||||
At [http://developer.nvidia.com/object/cuda.html]
|
|
||||||
|
|
||||||
=== Can I use the NVIDIA Texture Tools in my commercial application? ===
|
|
||||||
Yes, the NVIDIA Texture Tools are licensed under the MIT license.
|
|
||||||
|
|
||||||
=== Can I use the NVIDIA Texture Tools in my GPL application? ===
|
|
||||||
Yes, the MIT license is compatible with the GPL and LGPL licenses.
|
|
||||||
|
|
||||||
=== Can I use the NVIDIA Texture Tools in the US? Do I have to obtain a license of the S3TC patent (US patent 5,956,431)? ===
|
|
||||||
NVIDIA has a license of the S3TC patent that covers all our products, including our Texture Tools. You don't have to obtain a license of the S3TC patent to use any of NVIDIA's products, but certain uses of NVIDIA Texture Tools source code cannot be considered NVIDIA products anymore. Keep in mind that the NVIDIA Texture Tools are licensed under the MIT license and thus are provided without warranty of any kind.
|
|
46
README.md
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
NVIDIA Texture Tools
|
||||||
|
====================
|
||||||
|
|
||||||
|
The NVIDIA Texture Tools is a collection of image processing and texture
|
||||||
|
manipulation tools, designed to be integrated in game tools and asset
|
||||||
|
processing pipelines.
|
||||||
|
|
||||||
|
The primary features of the library are mipmap and normal map generation, format
|
||||||
|
conversion and DXT compression.
|
||||||
|
|
||||||
|
|
||||||
|
### How to build (Windows)
|
||||||
|
|
||||||
|
Open `project/vc12/thekla.sln` using Visual Studio.
|
||||||
|
|
||||||
|
Solutions for previous versions are also available, but they may not be up to date.
|
||||||
|
|
||||||
|
|
||||||
|
### How to build (Linux/OSX)
|
||||||
|
|
||||||
|
Use [cmake](http://www.cmake.org/) and the provided configure script:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ ./configure
|
||||||
|
$ make
|
||||||
|
$ sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Using NVIDIA Texture Tools
|
||||||
|
|
||||||
|
To use the NVIDIA Texture Tools in your own applications you just have to
|
||||||
|
include the following header file:
|
||||||
|
|
||||||
|
src/nvimage/nvtt/nvtt.h
|
||||||
|
|
||||||
|
And include the nvtt library in your projects.
|
||||||
|
|
||||||
|
The following file contains a simple example that shows how to use the library:
|
||||||
|
|
||||||
|
src/nvimage/nvtt/compress.cpp
|
||||||
|
|
||||||
|
Detailed documentation of the API can be found at:
|
||||||
|
|
||||||
|
http://code.google.com/p/nvidia-texture-tools/wiki/ApiDocumentation
|
||||||
|
|
7
buildpkg
@ -3,5 +3,8 @@
|
|||||||
tar zcvf nvidia-texture-tools-`cat VERSION`.tar.gz \
|
tar zcvf nvidia-texture-tools-`cat VERSION`.tar.gz \
|
||||||
--exclude '.*' --exclude debian --exclude '*~' --exclude buildpkg \
|
--exclude '.*' --exclude debian --exclude '*~' --exclude buildpkg \
|
||||||
--exclude 'build-*' --exclude data --exclude tags --exclude Makefile \
|
--exclude 'build-*' --exclude data --exclude tags --exclude Makefile \
|
||||||
--exclude qtcreator-build --exclude 'nvidia-texture-tools-*.tar.gz' \
|
--exclude 'doc' --exclude 'nvidia-texture-tools-*.tar.gz' \
|
||||||
--exclude '*.user' --transform 's,^,nvidia-texture-tools/,' *
|
--exclude '*.user' -s ',^,nvidia-texture-tools/,' *
|
||||||
|
# --exclude '*.user' --transform 's,^,nvidia-texture-tools/,' *
|
||||||
|
# --exclude '*.user' *
|
||||||
|
|
||||||
|
@ -5,30 +5,68 @@ SET(NV_SYSTEM_PROCESSOR "i586")
|
|||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
FIND_PROGRAM(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
|
FIND_PROGRAM(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
|
||||||
IF(CMAKE_UNAME)
|
IF(CMAKE_UNAME)
|
||||||
EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
|
#EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
|
||||||
|
|
||||||
IF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
|
#IF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
|
||||||
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
|
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
|
||||||
ENDIF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
|
#ENDIF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
|
||||||
|
|
||||||
|
IF(NV_SYSTEM_PROCESSOR STREQUAL "Power Macintosh")
|
||||||
|
SET(NV_SYSTEM_PROCESSOR "powerpc")
|
||||||
|
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "Power Macintosh")
|
||||||
|
|
||||||
# processor may have double quote in the name, and that needs to be removed
|
# processor may have double quote in the name, and that needs to be removed
|
||||||
STRING(REGEX REPLACE "\"" "" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
|
STRING(REGEX REPLACE "\"" "" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
|
||||||
STRING(REGEX REPLACE "/" "_" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
|
STRING(REGEX REPLACE "/" "_" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
|
||||||
ENDIF(CMAKE_UNAME)
|
ENDIF(CMAKE_UNAME)
|
||||||
|
|
||||||
# Get extended processor information with:
|
#~ # Get extended processor information from /proc/cpuinfo
|
||||||
# `cat /proc/cpuinfo`
|
#~ IF(EXISTS "/proc/cpuinfo")
|
||||||
|
|
||||||
|
#~ FILE(READ /proc/cpuinfo PROC_CPUINFO)
|
||||||
|
|
||||||
|
#~ SET(VENDOR_ID_RX "vendor_id[ \t]*:[ \t]*([a-zA-Z]+)\n")
|
||||||
|
#~ STRING(REGEX MATCH "${VENDOR_ID_RX}" VENDOR_ID "${PROC_CPUINFO}")
|
||||||
|
#~ STRING(REGEX REPLACE "${VENDOR_ID_RX}" "\\1" VENDOR_ID "${VENDOR_ID}")
|
||||||
|
|
||||||
|
#~ SET(CPU_FAMILY_RX "cpu family[ \t]*:[ \t]*([0-9]+)")
|
||||||
|
#~ STRING(REGEX MATCH "${CPU_FAMILY_RX}" CPU_FAMILY "${PROC_CPUINFO}")
|
||||||
|
#~ STRING(REGEX REPLACE "${CPU_FAMILY_RX}" "\\1" CPU_FAMILY "${CPU_FAMILY}")
|
||||||
|
|
||||||
|
#~ SET(MODEL_RX "model[ \t]*:[ \t]*([0-9]+)")
|
||||||
|
#~ STRING(REGEX MATCH "${MODEL_RX}" MODEL "${PROC_CPUINFO}")
|
||||||
|
#~ STRING(REGEX REPLACE "${MODEL_RX}" "\\1" MODEL "${MODEL}")
|
||||||
|
|
||||||
|
#~ SET(FLAGS_RX "flags[ \t]*:[ \t]*([a-zA-Z0-9 _]+)\n")
|
||||||
|
#~ STRING(REGEX MATCH "${FLAGS_RX}" FLAGS "${PROC_CPUINFO}")
|
||||||
|
#~ STRING(REGEX REPLACE "${FLAGS_RX}" "\\1" FLAGS "${FLAGS}")
|
||||||
|
|
||||||
|
#~ # Debug output.
|
||||||
|
#~ IF(LINUX_CPUINFO)
|
||||||
|
#~ MESSAGE(STATUS "LinuxCPUInfo.cmake:")
|
||||||
|
#~ MESSAGE(STATUS "VENDOR_ID : ${VENDOR_ID}")
|
||||||
|
#~ MESSAGE(STATUS "CPU_FAMILY : ${CPU_FAMILY}")
|
||||||
|
#~ MESSAGE(STATUS "MODEL : ${MODEL}")
|
||||||
|
#~ MESSAGE(STATUS "FLAGS : ${FLAGS}")
|
||||||
|
#~ ENDIF(LINUX_CPUINFO)
|
||||||
|
|
||||||
|
#~ ENDIF(EXISTS "/proc/cpuinfo")
|
||||||
|
|
||||||
|
#~ # Information on how to decode CPU_FAMILY and MODEL:
|
||||||
|
#~ # http://balusc.xs4all.nl/srv/har-cpu-int-pm.php
|
||||||
|
|
||||||
ELSE(UNIX)
|
ELSE(UNIX)
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
# It's not OK to trust $ENV{PROCESSOR_ARCHITECTURE}: its value depends on the type of executable being run,
|
# It's not OK to trust $ENV{PROCESSOR_ARCHITECTURE}: its value depends on the type of executable being run,
|
||||||
# so a 32-bit cmake (the default binary distribution) will always say "x86" regardless of the actual target.
|
# so a 32-bit cmake (the default binary distribution) will always say "x86" regardless of the actual target.
|
||||||
IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
SET (NV_SYSTEM_PROCESSOR "AMD64")
|
SET (NV_SYSTEM_PROCESSOR "x86_64")
|
||||||
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
SET (NV_SYSTEM_PROCESSOR "x86")
|
SET (NV_SYSTEM_PROCESSOR "x86")
|
||||||
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,164 +0,0 @@
|
|||||||
#
|
|
||||||
# Try to find CUDA compiler, runtime libraries, and include path.
|
|
||||||
# Once done this will define
|
|
||||||
#
|
|
||||||
# CUDA_FOUND
|
|
||||||
# CUDA_INCLUDE_PATH
|
|
||||||
# CUDA_RUNTIME_LIBRARY
|
|
||||||
# CUDA_COMPILER
|
|
||||||
#
|
|
||||||
# It will also define the following macro:
|
|
||||||
#
|
|
||||||
# WRAP_CUDA
|
|
||||||
#
|
|
||||||
|
|
||||||
IF (WIN32)
|
|
||||||
FIND_PROGRAM (CUDA_COMPILER nvcc.exe
|
|
||||||
$ENV{CUDA_BIN_PATH}
|
|
||||||
DOC "The CUDA Compiler")
|
|
||||||
ELSE(WIN32)
|
|
||||||
FIND_PROGRAM (CUDA_COMPILER nvcc
|
|
||||||
$ENV{CUDA_BIN_PATH}
|
|
||||||
/usr/local/cuda/bin
|
|
||||||
DOC "The CUDA Compiler")
|
|
||||||
ENDIF(WIN32)
|
|
||||||
|
|
||||||
IF (CUDA_COMPILER)
|
|
||||||
GET_FILENAME_COMPONENT (CUDA_COMPILER_DIR ${CUDA_COMPILER} PATH)
|
|
||||||
GET_FILENAME_COMPONENT (CUDA_COMPILER_SUPER_DIR ${CUDA_COMPILER_DIR} PATH)
|
|
||||||
ELSE (CUDA_COMPILER)
|
|
||||||
SET (CUDA_COMPILER_DIR .)
|
|
||||||
SET (CUDA_COMPILER_SUPER_DIR ..)
|
|
||||||
ENDIF (CUDA_COMPILER)
|
|
||||||
|
|
||||||
FIND_PATH (CUDA_INCLUDE_PATH cuda_runtime.h
|
|
||||||
$ENV{CUDA_INC_PATH}
|
|
||||||
${CUDA_COMPILER_SUPER_DIR}/include
|
|
||||||
DOC "The directory where CUDA headers reside")
|
|
||||||
|
|
||||||
FIND_PATH (CUTIL_INCLUDE_PATH cutil.h
|
|
||||||
"$ENV{NVSDKCUDA_ROOT}/common/inc"
|
|
||||||
"$ENV{PROGRAMFILES}/NVIDIA Corporation/NVIDIA CUDA SDK/common/inc"
|
|
||||||
DOC "The directory where the CUTIL headers reside")
|
|
||||||
|
|
||||||
FIND_LIBRARY (CUDA_RUNTIME_LIBRARY
|
|
||||||
NAMES cudart
|
|
||||||
PATHS
|
|
||||||
$ENV{CUDA_LIB_PATH}
|
|
||||||
${CUDA_COMPILER_SUPER_DIR}/lib
|
|
||||||
${CUDA_COMPILER_DIR}
|
|
||||||
DOC "The CUDA runtime library")
|
|
||||||
|
|
||||||
FIND_LIBRARY (CUTIL_LIBRARY
|
|
||||||
NAMES cutil32 cutil64
|
|
||||||
PATHS
|
|
||||||
"$ENV{NVSDKCUDA_ROOT}/common/lib"
|
|
||||||
"$ENV{PROGRAMFILES}/NVIDIA Corporation/NVIDIA CUDA SDK/common/lib"
|
|
||||||
DOC "The CUTIL library")
|
|
||||||
|
|
||||||
IF (CUDA_INCLUDE_PATH AND CUDA_RUNTIME_LIBRARY)
|
|
||||||
SET (CUDA_FOUND TRUE)
|
|
||||||
ELSE (CUDA_INCLUDE_PATH AND CUDA_RUNTIME_LIBRARY)
|
|
||||||
SET (CUDA_FOUND FALSE)
|
|
||||||
ENDIF (CUDA_INCLUDE_PATH AND CUDA_RUNTIME_LIBRARY)
|
|
||||||
|
|
||||||
SET (CUDA_LIBRARIES ${CUDA_RUNTIME_LIBRARY})
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED (CUDA_FOUND CUDA_COMPILER CUDA_RUNTIME_LIBRARY)
|
|
||||||
|
|
||||||
|
|
||||||
IF (CUTIL_INCLUDE_PATH AND CUTIL_LIBRARY)
|
|
||||||
SET (CUTIL_FOUND 1 CACHE STRING "Set to 1 if CUDA is found, 0 otherwise")
|
|
||||||
ELSE (CUTIL_INCLUDE_PATH AND CUTIL_LIBRARY)
|
|
||||||
SET (CUTIL_FOUND 0 CACHE STRING "Set to 1 if CUDA is found, 0 otherwise")
|
|
||||||
ENDIF (CUTIL_INCLUDE_PATH AND CUTIL_LIBRARY)
|
|
||||||
|
|
||||||
SET (CUTIL_LIBRARIES ${CUTIL_LIBRARY})
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED (CUTIL_FOUND)
|
|
||||||
|
|
||||||
|
|
||||||
#SET(CUDA_OPTIONS "-ncfe")
|
|
||||||
SET(CUDA_OPTIONS "--host-compilation=C++")
|
|
||||||
|
|
||||||
IF (CUDA_EMULATION)
|
|
||||||
SET (CUDA_OPTIONS "${CUDA_OPTIONS} -deviceemu")
|
|
||||||
ENDIF (CUDA_EMULATION)
|
|
||||||
|
|
||||||
|
|
||||||
# Get include directories.
|
|
||||||
MACRO(GET_CUDA_INC_DIRS _cuda_INC_DIRS)
|
|
||||||
SET(${_cuda_INC_DIRS})
|
|
||||||
GET_DIRECTORY_PROPERTY(_inc_DIRS INCLUDE_DIRECTORIES)
|
|
||||||
|
|
||||||
FOREACH(_current ${_inc_DIRS})
|
|
||||||
SET(${_cuda_INC_DIRS} ${${_cuda_INC_DIRS}} "-I" ${_current})
|
|
||||||
ENDFOREACH(_current ${_inc_DIRS})
|
|
||||||
|
|
||||||
SET(${_cuda_INC_DIRS} ${${_cuda_INC_DIRS}} "-I" ${CUDA_INCLUDE_PATH})
|
|
||||||
|
|
||||||
# IF (CMAKE_SYTEM_INCLUDE_PATH)
|
|
||||||
# SET(${_cuda_INC_DIRS} ${${_cuda_INC_DIRS}} "-I" ${CMAKE_SYSTEM_INCLUDE_PATH})
|
|
||||||
# ENDIF (CMAKE_SYTEM_INCLUDE_PATH)
|
|
||||||
# IF (CMAKE_INCLUDE_PATH)
|
|
||||||
# SET(${_cuda_INC_DIRS} ${${_cuda_INC_DIRS}} "-I" ${CMAKE_INCLUDE_PATH})
|
|
||||||
# ENDIF (CMAKE_INCLUDE_PATH)
|
|
||||||
|
|
||||||
ENDMACRO(GET_CUDA_INC_DIRS)
|
|
||||||
|
|
||||||
|
|
||||||
# Get file dependencies.
|
|
||||||
MACRO (GET_CUFILE_DEPENDENCIES dependencies file)
|
|
||||||
GET_FILENAME_COMPONENT(filepath ${file} PATH)
|
|
||||||
|
|
||||||
# parse file for dependencies
|
|
||||||
FILE(READ "${file}" CONTENTS)
|
|
||||||
#STRING(REGEX MATCHALL "#[ \t]*include[ \t]+[<\"][^>\"]*" DEPS "${CONTENTS}")
|
|
||||||
STRING(REGEX MATCHALL "#[ \t]*include[ \t]+\"[^\"]*" DEPS "${CONTENTS}")
|
|
||||||
|
|
||||||
SET(${dependencies})
|
|
||||||
|
|
||||||
FOREACH(DEP ${DEPS})
|
|
||||||
STRING(REGEX REPLACE "#[ \t]*include[ \t]+\"" "" DEP "${DEP}")
|
|
||||||
|
|
||||||
FIND_PATH(PATH_OF_${DEP} ${DEP}
|
|
||||||
${filepath})
|
|
||||||
|
|
||||||
IF(NOT ${PATH_OF_${DEP}} STREQUAL PATH_OF_${DEP}-NOTFOUND)
|
|
||||||
#MESSAGE("${file} : ${PATH_OF_${DEP}}/${DEP}")
|
|
||||||
SET(${dependencies} ${${dependencies}} ${PATH_OF_${DEP}}/${DEP})
|
|
||||||
ENDIF(NOT ${PATH_OF_${DEP}} STREQUAL PATH_OF_${DEP}-NOTFOUND)
|
|
||||||
|
|
||||||
ENDFOREACH(DEP)
|
|
||||||
|
|
||||||
ENDMACRO (GET_CUFILE_DEPENDENCIES)
|
|
||||||
|
|
||||||
|
|
||||||
# WRAP_CUDA(outfile ...)
|
|
||||||
MACRO (WRAP_CUDA outfiles)
|
|
||||||
GET_CUDA_INC_DIRS(cuda_includes)
|
|
||||||
#MESSAGE(${cuda_includes})
|
|
||||||
|
|
||||||
FOREACH (CUFILE ${ARGN})
|
|
||||||
GET_FILENAME_COMPONENT (CUFILE ${CUFILE} ABSOLUTE)
|
|
||||||
GET_FILENAME_COMPONENT (CPPFILE ${CUFILE} NAME_WE)
|
|
||||||
SET (CPPFILE ${CMAKE_CURRENT_BINARY_DIR}/${CPPFILE}.gen.cpp)
|
|
||||||
|
|
||||||
GET_CUFILE_DEPENDENCIES(CUDEPS ${CUFILE})
|
|
||||||
#MESSAGE("${CUDEPS}")
|
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND (
|
|
||||||
OUTPUT ${CPPFILE}
|
|
||||||
COMMAND ${CUDA_COMPILER}
|
|
||||||
ARGS -cuda ${cuda_includes} ${CUDA_OPTIONS} -o ${CPPFILE} ${CUFILE}
|
|
||||||
MAIN_DEPENDENCY ${CUFILE}
|
|
||||||
DEPENDS ${CUDEPS})
|
|
||||||
|
|
||||||
#MACRO_ADD_FILE_DEPENDENCIES(${CUFILE} ${CPPFILE})
|
|
||||||
|
|
||||||
SET (${outfiles} ${${outfiles}} ${CPPFILE})
|
|
||||||
ENDFOREACH (CUFILE)
|
|
||||||
|
|
||||||
SET_SOURCE_FILES_PROPERTIES(${outfiles} PROPERTIES GENERATED 1)
|
|
||||||
|
|
||||||
ENDMACRO (WRAP_CUDA)
|
|
@ -3,7 +3,7 @@
|
|||||||
# Once done this will define
|
# Once done this will define
|
||||||
#
|
#
|
||||||
# CG_FOUND =system has NVIDIA Cg and it can be used.
|
# CG_FOUND =system has NVIDIA Cg and it can be used.
|
||||||
# CG_INCLUDE_PATH = directory where cg.h resides
|
# CG_INCLUDE_DIR = directory where cg.h resides
|
||||||
# CG_LIBRARY = full path to libCg.so (Cg.DLL on win32)
|
# CG_LIBRARY = full path to libCg.so (Cg.DLL on win32)
|
||||||
# CG_GL_LIBRARY = full path to libCgGL.so (CgGL.dll on win32)
|
# CG_GL_LIBRARY = full path to libCgGL.so (CgGL.dll on win32)
|
||||||
# CG_COMPILER = full path to cgc (cgc.exe on win32)
|
# CG_COMPILER = full path to cgc (cgc.exe on win32)
|
||||||
@ -21,7 +21,7 @@ IF (APPLE)
|
|||||||
ENDFOREACH(dir)
|
ENDFOREACH(dir)
|
||||||
|
|
||||||
# Find the include dir
|
# Find the include dir
|
||||||
FIND_PATH(CG_INCLUDE_PATH cg.h
|
FIND_PATH(CG_INCLUDE_DIR cg.h
|
||||||
${CG_FRAMEWORK_INCLUDES}
|
${CG_FRAMEWORK_INCLUDES}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ ELSE (APPLE)
|
|||||||
SET (CG_COMPILER_DIR .)
|
SET (CG_COMPILER_DIR .)
|
||||||
SET (CG_COMPILER_SUPER_DIR ..)
|
SET (CG_COMPILER_SUPER_DIR ..)
|
||||||
ENDIF (CG_COMPILER)
|
ENDIF (CG_COMPILER)
|
||||||
FIND_PATH( CG_INCLUDE_PATH Cg/cg.h
|
FIND_PATH( CG_INCLUDE_DIR Cg/cg.h
|
||||||
$ENV{CG_INC_PATH}
|
$ENV{CG_INC_PATH}
|
||||||
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/include
|
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/include
|
||||||
$ENV{PROGRAMFILES}/Cg
|
$ENV{PROGRAMFILES}/Cg
|
||||||
@ -73,7 +73,7 @@ ELSE (APPLE)
|
|||||||
DOC "The directory where Cg/cg.h resides"
|
DOC "The directory where Cg/cg.h resides"
|
||||||
)
|
)
|
||||||
|
|
||||||
IF (NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
IF (NV_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||||
FIND_LIBRARY( CG_LIBRARY
|
FIND_LIBRARY( CG_LIBRARY
|
||||||
NAMES Cg
|
NAMES Cg
|
||||||
PATHS
|
PATHS
|
||||||
@ -100,7 +100,7 @@ ELSE (APPLE)
|
|||||||
${CG_COMPILER_DIR}
|
${CG_COMPILER_DIR}
|
||||||
DOC "The Cg GL runtime library (64-bit)"
|
DOC "The Cg GL runtime library (64-bit)"
|
||||||
)
|
)
|
||||||
ELSE(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
ELSE(NV_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||||
FIND_LIBRARY( CG_LIBRARY
|
FIND_LIBRARY( CG_LIBRARY
|
||||||
NAMES Cg
|
NAMES Cg
|
||||||
PATHS
|
PATHS
|
||||||
@ -123,7 +123,7 @@ ELSE (APPLE)
|
|||||||
${CG_COMPILER_DIR}
|
${CG_COMPILER_DIR}
|
||||||
DOC "The Cg GL runtime library"
|
DOC "The Cg GL runtime library"
|
||||||
)
|
)
|
||||||
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
||||||
|
|
||||||
ELSE (WIN32)
|
ELSE (WIN32)
|
||||||
FIND_PROGRAM( CG_COMPILER cgc
|
FIND_PROGRAM( CG_COMPILER cgc
|
||||||
@ -133,7 +133,7 @@ ELSE (APPLE)
|
|||||||
)
|
)
|
||||||
GET_FILENAME_COMPONENT(CG_COMPILER_DIR "${CG_COMPILER}" PATH)
|
GET_FILENAME_COMPONENT(CG_COMPILER_DIR "${CG_COMPILER}" PATH)
|
||||||
GET_FILENAME_COMPONENT(CG_COMPILER_SUPER_DIR "${CG_COMPILER_DIR}" PATH)
|
GET_FILENAME_COMPONENT(CG_COMPILER_SUPER_DIR "${CG_COMPILER_DIR}" PATH)
|
||||||
FIND_PATH( CG_INCLUDE_PATH Cg/cg.h
|
FIND_PATH( CG_INCLUDE_DIR Cg/cg.h
|
||||||
/usr/include
|
/usr/include
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
${CG_COMPILER_SUPER_DIR}/include
|
${CG_COMPILER_SUPER_DIR}/include
|
||||||
@ -163,10 +163,10 @@ ELSE (APPLE)
|
|||||||
ENDIF (WIN32)
|
ENDIF (WIN32)
|
||||||
ENDIF (APPLE)
|
ENDIF (APPLE)
|
||||||
|
|
||||||
IF (CG_INCLUDE_PATH)
|
IF (CG_INCLUDE_DIR)
|
||||||
SET( CG_FOUND 1 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
|
SET( CG_FOUND 1 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
|
||||||
ELSE (CG_INCLUDE_PATH)
|
ELSE (CG_INCLUDE_DIR)
|
||||||
SET( CG_FOUND 0 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
|
SET( CG_FOUND 0 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
|
||||||
ENDIF (CG_INCLUDE_PATH)
|
ENDIF (CG_INCLUDE_DIR)
|
||||||
|
|
||||||
MARK_AS_ADVANCED( CG_FOUND )
|
MARK_AS_ADVANCED( CG_FOUND )
|
||||||
|
@ -9,12 +9,14 @@
|
|||||||
|
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
|
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
|
||||||
${PROJECT_SOURCE_DIR}/extern/FreeImage
|
${FREEIMAGE_ROOT_DIR}/include
|
||||||
|
${FREEIMAGE_ROOT_DIR}
|
||||||
DOC "The directory where FreeImage.h resides")
|
DOC "The directory where FreeImage.h resides")
|
||||||
FIND_LIBRARY( FREEIMAGE_LIBRARY
|
FIND_LIBRARY( FREEIMAGE_LIBRARY
|
||||||
NAMES FreeImage freeimage
|
NAMES FreeImage freeimage
|
||||||
PATHS
|
PATHS
|
||||||
${PROJECT_SOURCE_DIR}/FreeImage
|
${FREEIMAGE_ROOT_DIR}/lib
|
||||||
|
${FREEIMAGE_ROOT_DIR}
|
||||||
DOC "The FreeImage library")
|
DOC "The FreeImage library")
|
||||||
ELSE (WIN32)
|
ELSE (WIN32)
|
||||||
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
|
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
|
||||||
@ -38,9 +40,9 @@ ENDIF (WIN32)
|
|||||||
SET(FREEIMAGE_LIBRARIES ${FREEIMAGE_LIBRARY})
|
SET(FREEIMAGE_LIBRARIES ${FREEIMAGE_LIBRARY})
|
||||||
|
|
||||||
IF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
IF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
||||||
SET( FREEIMAGE_FOUND TRUE CACHE BOOL "Set to TRUE if GLEW is found, FALSE otherwise")
|
SET( FREEIMAGE_FOUND TRUE CACHE BOOL "Set to TRUE if FreeImage is found, FALSE otherwise")
|
||||||
ELSE (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
ELSE (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
||||||
SET( FREEIMAGE_FOUND FALSE CACHE BOOL "Set to TRUE if GLEW is found, FALSE otherwise")
|
SET( FREEIMAGE_FOUND FALSE CACHE BOOL "Set to TRUE if FreeImage is found, FALSE otherwise")
|
||||||
ENDIF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
ENDIF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(
|
MARK_AS_ADVANCED(
|
||||||
|
@ -13,25 +13,13 @@ IF (WIN32)
|
|||||||
${GLEW_ROOT_DIR}/include
|
${GLEW_ROOT_DIR}/include
|
||||||
DOC "The directory where GL/glew.h resides")
|
DOC "The directory where GL/glew.h resides")
|
||||||
|
|
||||||
IF (NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
FIND_LIBRARY( GLEW_LIBRARY
|
||||||
FIND_LIBRARY( GLEW_LIBRARY
|
NAMES glew GLEW glew32 glew32s
|
||||||
NAMES glew64 glew64s
|
PATHS
|
||||||
PATHS
|
$ENV{PROGRAMFILES}/GLEW/lib
|
||||||
$ENV{PROGRAMFILES}/GLEW/lib
|
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
|
||||||
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
|
${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
|
||||||
${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
|
DOC "The GLEW library")
|
||||||
DOC "The GLEW library (64-bit)"
|
|
||||||
)
|
|
||||||
ELSE(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
|
||||||
FIND_LIBRARY( GLEW_LIBRARY
|
|
||||||
NAMES glew GLEW glew32 glew32s
|
|
||||||
PATHS
|
|
||||||
$ENV{PROGRAMFILES}/GLEW/lib
|
|
||||||
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
|
|
||||||
${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
|
|
||||||
DOC "The GLEW library"
|
|
||||||
)
|
|
||||||
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
|
||||||
ELSE (WIN32)
|
ELSE (WIN32)
|
||||||
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
|
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
|
||||||
/usr/include
|
/usr/include
|
||||||
@ -41,8 +29,9 @@ ELSE (WIN32)
|
|||||||
${GLEW_ROOT_DIR}/include
|
${GLEW_ROOT_DIR}/include
|
||||||
DOC "The directory where GL/glew.h resides")
|
DOC "The directory where GL/glew.h resides")
|
||||||
|
|
||||||
|
# Prefer the static library.
|
||||||
FIND_LIBRARY( GLEW_LIBRARY
|
FIND_LIBRARY( GLEW_LIBRARY
|
||||||
NAMES GLEW glew
|
NAMES libGLEW.a GLEW
|
||||||
PATHS
|
PATHS
|
||||||
/usr/lib64
|
/usr/lib64
|
||||||
/usr/lib
|
/usr/lib
|
||||||
@ -59,4 +48,3 @@ IF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY)
|
|||||||
SET(GLEW_LIBRARIES ${GLEW_LIBRARY})
|
SET(GLEW_LIBRARIES ${GLEW_LIBRARY})
|
||||||
SET(GLEW_FOUND "YES")
|
SET(GLEW_FOUND "YES")
|
||||||
ENDIF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY)
|
ENDIF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY)
|
||||||
|
|
||||||
|
@ -53,11 +53,7 @@ ENDIF(ZLIB_FOUND)
|
|||||||
IF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
|
IF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
|
||||||
SET(OPENEXR_FOUND TRUE)
|
SET(OPENEXR_FOUND TRUE)
|
||||||
SET(OPENEXR_INCLUDE_PATHS ${OPENEXR_INCLUDE_PATH} CACHE STRING "The include paths needed to use OpenEXR")
|
SET(OPENEXR_INCLUDE_PATHS ${OPENEXR_INCLUDE_PATH} CACHE STRING "The include paths needed to use OpenEXR")
|
||||||
SET(OPENEXR_LIBRARIES ${OPENEXR_IMATH_LIBRARY} ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_HALF_LIBRARY} ${ZLIB_LIBRARY} CACHE STRING "The libraries needed to use OpenEXR")
|
SET(OPENEXR_LIBRARIES ${OPENEXR_IMATH_LIBRARY} ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_HALF_LIBRARY} ${OPENEXR_ILMTHREAD_LIBRARY} ${ZLIB_LIBRARY} CACHE STRING "The libraries needed to use OpenEXR")
|
||||||
|
|
||||||
IF(OPENEXR_ILMTHREAD_LIBRARY)
|
|
||||||
SET(OPENEXR_LIBRARIES ${OPENEXR_LIBRARIES} ${OPENEXR_ILMTHREAD_LIBRARY})
|
|
||||||
ENDIF(OPENEXR_ILMTHREAD_LIBRARY)
|
|
||||||
ENDIF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
|
ENDIF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
|
||||||
|
|
||||||
IF(OPENEXR_FOUND)
|
IF(OPENEXR_FOUND)
|
||||||
|
@ -35,11 +35,16 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk")
|
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk")
|
||||||
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk")
|
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk")
|
||||||
# ENDIF(DARWIN)
|
# ENDIF(DARWIN)
|
||||||
|
IF(APPLE)
|
||||||
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i586 -arch x86_64 -msse3 -mmacosx-version-min=10.5")
|
||||||
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i586 -arch x86_64 -msse3 -mmacosx-version-min=10.5")
|
||||||
|
ENDIF(APPLE)
|
||||||
|
|
||||||
IF(CMAKE_BUILD_TYPE STREQUAL "debug")
|
IF(CMAKE_BUILD_TYPE STREQUAL "debug")
|
||||||
ADD_DEFINITIONS(-D_DEBUG)
|
ADD_DEFINITIONS(-D_DEBUG)
|
||||||
ENDIF(CMAKE_BUILD_TYPE STREQUAL "debug")
|
ENDIF(CMAKE_BUILD_TYPE STREQUAL "debug")
|
||||||
|
|
||||||
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||||
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
|
19
configure
vendored
@ -18,7 +18,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
help=false
|
help=false
|
||||||
build="Debug" # release
|
build="debug" # release
|
||||||
prefix=/usr/local
|
prefix=/usr/local
|
||||||
|
|
||||||
# Parse the args
|
# Parse the args
|
||||||
@ -26,9 +26,8 @@ for i in "$@"
|
|||||||
do
|
do
|
||||||
case $i in
|
case $i in
|
||||||
--help ) help=true ;;
|
--help ) help=true ;;
|
||||||
--debug ) build="Debug" ;;
|
--debug ) build="debug" ;;
|
||||||
--release ) build="Release" ;;
|
--release ) build="release" ;;
|
||||||
--prefix=* ) prefix="${i#--prefix=}" ;;
|
|
||||||
--prefix=* ) prefix="${i#--prefix=}" ;;
|
--prefix=* ) prefix="${i#--prefix=}" ;;
|
||||||
* ) echo "Unrecognised argument $i" ;;
|
* ) echo "Unrecognised argument $i" ;;
|
||||||
esac
|
esac
|
||||||
@ -53,7 +52,7 @@ echo "-- Configuring nvidia-texture-tools "`cat VERSION`
|
|||||||
|
|
||||||
mkdir -p ./build-$build
|
mkdir -p ./build-$build
|
||||||
cd ./build-$build
|
cd ./build-$build
|
||||||
$CMAKE .. -DNVTT_SHARED=1 -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
|
$CMAKE .. -DNVTT_SHARED=0 -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
@ -62,15 +61,15 @@ echo ""
|
|||||||
|
|
||||||
cat > Makefile << EOF
|
cat > Makefile << EOF
|
||||||
all:
|
all:
|
||||||
@make --no-print-directory -C build-$build/
|
@+make --no-print-directory -C build-$build/
|
||||||
install:
|
install:
|
||||||
@make install --no-print-directory -C build-$build/
|
@+make install --no-print-directory -C build-$build/
|
||||||
package:
|
package:
|
||||||
@make package --no-print-directory -C build-$build/
|
@+make package --no-print-directory -C build-$build/
|
||||||
test:
|
test:
|
||||||
@make test --no-print-directory -C build-$build/
|
@+make test --no-print-directory -C build-$build/
|
||||||
clean:
|
clean:
|
||||||
@make clean --no-print-directory -C build-$build/
|
@+make clean --no-print-directory -C build-$build/
|
||||||
distclean:
|
distclean:
|
||||||
@rm -Rf build-$build/
|
@rm -Rf build-$build/
|
||||||
EOF
|
EOF
|
||||||
|
BIN
data/bugs/mthomson/world.png
Executable file
After Width: | Height: | Size: 309 KiB |
BIN
data/bugs/mthomson/world.tif
Executable file
BIN
data/cubemaps/MeadowTrail.dds
Normal file
BIN
data/luma/testpat_orig.1k.png
Executable file
After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |
Before Width: | Height: | Size: 828 B After Width: | Height: | Size: 828 B |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
BIN
data/testsuite/farbrausch/t.2d.pn02.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
data/testsuite/farbrausch/t.aircondition.01.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
data/testsuite/farbrausch/t.bricks.02.png
Normal file
After Width: | Height: | Size: 541 KiB |
BIN
data/testsuite/farbrausch/t.bricks.05.png
Normal file
After Width: | Height: | Size: 492 KiB |
BIN
data/testsuite/farbrausch/t.concrete.cracked.01.png
Normal file
After Width: | Height: | Size: 375 KiB |
BIN
data/testsuite/farbrausch/t.envi.colored02.png
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
data/testsuite/farbrausch/t.envi.colored03.png
Normal file
After Width: | Height: | Size: 124 KiB |
BIN
data/testsuite/farbrausch/t.font.01.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
data/testsuite/farbrausch/t.sewers.01.png
Normal file
After Width: | Height: | Size: 444 KiB |
BIN
data/testsuite/farbrausch/t.train.03.png
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
data/testsuite/farbrausch/t.yello.01.png
Normal file
After Width: | Height: | Size: 415 KiB |
BIN
data/testsuite/id_nmap/01_arcade.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
data/testsuite/id_nmap/02_tentacle.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
data/testsuite/id_nmap/03_chest.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
data/testsuite/id_nmap/04_face.png
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
data/testsuite/id_tnmap/01_dot1.png
Normal file
After Width: | Height: | Size: 136 KiB |
BIN
data/testsuite/id_tnmap/02_dot2.png
Normal file
After Width: | Height: | Size: 621 KiB |
BIN
data/testsuite/id_tnmap/03_dot3.png
Normal file
After Width: | Height: | Size: 168 KiB |
BIN
data/testsuite/id_tnmap/04_dot4.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
data/testsuite/id_tnmap/05_lumpy.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
data/testsuite/id_tnmap/06_voronoi.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
data/testsuite/id_tnmap/07_turtle.png
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
data/testsuite/id_tnmap/08_normalmap.png
Normal file
After Width: | Height: | Size: 407 KiB |
BIN
data/testsuite/id_tnmap/09_metal.png
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
data/testsuite/id_tnmap/10_skin.png
Normal file
After Width: | Height: | Size: 574 KiB |
BIN
data/testsuite/id_tnmap/11_onetile.png
Normal file
After Width: | Height: | Size: 149 KiB |
BIN
data/testsuite/id_tnmap/12_barrel.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
data/testsuite/id_tnmap/13_arcade.png
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
data/testsuite/id_tnmap/14_tentacle.png
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
data/testsuite/id_tnmap/15_chest.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
data/testsuite/id_tnmap/16_face.png
Normal file
After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 719 KiB After Width: | Height: | Size: 719 KiB |
Before Width: | Height: | Size: 604 KiB After Width: | Height: | Size: 604 KiB |
Before Width: | Height: | Size: 491 KiB After Width: | Height: | Size: 491 KiB |
Before Width: | Height: | Size: 622 KiB After Width: | Height: | Size: 622 KiB |
Before Width: | Height: | Size: 767 KiB After Width: | Height: | Size: 767 KiB |
Before Width: | Height: | Size: 604 KiB After Width: | Height: | Size: 604 KiB |
Before Width: | Height: | Size: 553 KiB After Width: | Height: | Size: 553 KiB |
Before Width: | Height: | Size: 770 KiB After Width: | Height: | Size: 770 KiB |
Before Width: | Height: | Size: 569 KiB After Width: | Height: | Size: 569 KiB |
Before Width: | Height: | Size: 580 KiB After Width: | Height: | Size: 580 KiB |
Before Width: | Height: | Size: 606 KiB After Width: | Height: | Size: 606 KiB |
Before Width: | Height: | Size: 519 KiB After Width: | Height: | Size: 519 KiB |
Before Width: | Height: | Size: 803 KiB After Width: | Height: | Size: 803 KiB |
Before Width: | Height: | Size: 676 KiB After Width: | Height: | Size: 676 KiB |
Before Width: | Height: | Size: 598 KiB After Width: | Height: | Size: 598 KiB |
Before Width: | Height: | Size: 522 KiB After Width: | Height: | Size: 522 KiB |
Before Width: | Height: | Size: 588 KiB After Width: | Height: | Size: 588 KiB |
Before Width: | Height: | Size: 763 KiB After Width: | Height: | Size: 763 KiB |
Before Width: | Height: | Size: 656 KiB After Width: | Height: | Size: 656 KiB |
Before Width: | Height: | Size: 481 KiB After Width: | Height: | Size: 481 KiB |
Before Width: | Height: | Size: 622 KiB After Width: | Height: | Size: 622 KiB |
Before Width: | Height: | Size: 686 KiB After Width: | Height: | Size: 686 KiB |
Before Width: | Height: | Size: 544 KiB After Width: | Height: | Size: 544 KiB |
Before Width: | Height: | Size: 690 KiB After Width: | Height: | Size: 690 KiB |
BIN
data/testsuite/lightmap/cottage.dds
Executable file
BIN
data/testsuite/lightmap/specruin.dds
Executable file
BIN
data/testsuite/lightmap/tower.dds
Executable file
BIN
data/testsuite/lugaru/lugaru-blood.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
data/testsuite/lugaru/lugaru-bush.png
Normal file
After Width: | Height: | Size: 98 KiB |
BIN
data/testsuite/lugaru/lugaru-cursor.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
data/testsuite/lugaru/lugaru-hawk.png
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
data/testsuite/quake3/q3-blocks15cgeomtrn.tga
Normal file
After Width: | Height: | Size: 256 KiB |
BIN
data/testsuite/quake3/q3-blocks17bloody.tga
Normal file
After Width: | Height: | Size: 256 KiB |
BIN
data/testsuite/quake3/q3-dark_tin2.tga
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
data/testsuite/quake3/q3-fan.tga
Normal file
After Width: | Height: | Size: 256 KiB |
BIN
data/testsuite/quake3/q3-fan_grate.tga
Normal file
After Width: | Height: | Size: 256 KiB |
BIN
data/testsuite/quake3/q3-metal2_2.tga
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
data/testsuite/quake3/q3-panel_glo.tga
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
data/testsuite/quake3/q3-proto_fence.tga
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
data/testsuite/quake3/q3-wires02.tga
Normal file
After Width: | Height: | Size: 128 KiB |
Before Width: | Height: | Size: 768 KiB |
Before Width: | Height: | Size: 768 KiB |
Before Width: | Height: | Size: 768 KiB |
Before Width: | Height: | Size: 768 KiB |
Before Width: | Height: | Size: 768 KiB |