Commit Graph

163 Commits

Author SHA1 Message Date
rdb bf190f7306 interrogate: support MAKE_MAP_PROPERTY 2017-10-09 00:02:46 +02:00
rdb 23645cc407 Fix DDS load crash with certain formats; support R16, RG16, R32, RG32 2016-12-13 21:00:11 +01:00
rdb ef986ccfc0 Texture.set_ram_image(_as) now directly accepts buffers with right component size 2016-10-24 21:29:43 +02:00
rdb 400bc2cc26 Support .ktx textures, ETC1/ETC2/EAC compression 2016-07-15 11:50:57 +02:00
rdb 9963fe2c3c Fix a couple of compile warnings, reduce unnecessary includes 2016-06-23 22:59:50 +02:00
rdb 18874fa151 Replace PN_int/uint types with stdint.h types, since all compilers we support have them.
Plus, we already had code that relied on them being available anyway.
2016-05-11 00:27:58 +02:00
tobspr b2ebd78d81 Support for R16I and R16UI 2016-04-30 12:26:59 +02:00
tobspr 3e2b8407c8 Add more properties to the Texture class 2016-03-18 16:41:16 +01:00
rdb d50a326ca7 Fix silly multiple uncompress&recompress when generating mips for compressed texture 2016-02-29 19:49:48 +01:00
tobspr 0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
rdb 17ad8f254d Support BC4/BC5 compression, more texture formats, DX10 DDS files, rgba16/32 DDS files 2016-01-28 13:16:53 +01:00
rdb e4857a58bb Add many more Python properties 2015-12-24 16:17:34 +01:00
rdb 90f05d7284 Add snorm texture formats 2015-11-10 18:00:18 +01:00
rdb 18ad6d1543 Replace many int params with size_t params where appropriate, and work towards fixing type conversion warnings 2015-10-07 18:58:26 +02:00
tobspr 9868d87196 Add Texture::F_r11_g11_b10 2015-08-16 14:10:59 +02:00
rdb 9773fd7969 Support cube map arrays 2015-08-11 17:08:31 +02:00
rdb 11ed8a4d8d Use dynamic type lookup for interrogate to eliminate inter-module dependencies
It is now no longer necessary to link to core.pyd
Also includes a slight coercion optimization for trivial types
2015-06-06 19:36:40 +02:00
rdb b49289a4f6 Allow setting min-lod, max-lod, lod-bias in egg file 2015-05-21 11:16:46 +02:00
rdb 2ff9083812 Add support for buffer textures 2015-04-16 16:55:29 +02:00
rdb 0570d9536e Merge branch 'interrogate-overhaul'
Conflicts:
	panda/src/gobj/texture.h
	panda/src/pnmimage/pnmImage.h
2015-03-22 21:50:08 +01:00
rdb 22120524a2 PNMImage sRGB support, use floats instead of doubles 2015-03-15 17:22:28 +01:00
rdb e608fa69c7 Merge branch 'master' into interrogate-overhaul
Conflicts:
	dtool/src/cppparser/cppBison.yxx
	dtool/src/interrogate/interfaceMakerPythonNative.cxx
2015-03-14 16:47:31 +01:00
rdb 04d4309b14 SSE2-enhanced sRGB encode (with runtime CPU detection) 2015-03-01 11:46:52 +01:00
rdb 6db5d0dc11 Huge cppparser and interrogate overhaul, bringing:
* Better support for typedefs
* Same code should compile for both 32-bit and 64-bit
* C++11 typed enum support
* Synthesize __setitem__ when operator [] returns reference
* Rewrite coerce system to have better performance
* Change semantics of __getattr__ and __setattr__ to match
  Python's, add __getattribute__, __delattr__ and __delitem__
* Improve performance of slot functions a bit more
* Reduce memory overhead of type system
* Some support for wrapping arrays of numeric types
* C++11 character type support in cppparser
* Chars are handled as strings of length 1
* Template functions for CreatePyInstance that use runtime type map
* More functions from dtool as extension functions
* Code cleanup
2014-12-30 16:43:52 +01:00
tzaeru 9c137426e3 Integer texture formats for 8-bit R, RG, RGB and RGBA channels 2014-12-22 21:18:34 +01:00
rdb 01b669ccd8 Implement texture clear, fix immutable tex support 2014-12-21 14:13:49 +01:00
rdb 89031b4e48 Fix mipmapping with sampler state 2014-12-12 20:27:08 +01:00
rdb 95d85819b0 Separate out sampler state from texture, support sampler objects, support LOD min/max/bias 2014-12-12 15:58:45 +01:00
rdb 340169c80c Add load_sub_image 2014-09-13 19:49:17 +00:00
rdb 29cfc2b778 Correct CPU mipmap generation for sRGB textures 2014-07-19 16:47:57 +00:00
rdb b60fce49b5 Support generating mipmaps for 32-bit float textures 2014-07-18 18:23:29 +00:00
rdb dda0d9c15f check in 32-bit float texture formats 2014-07-07 19:49:25 +00:00
rdb 0e1f261ca5 Add F_r32i texture format (useful for atomic image writes from shaders) 2014-07-03 17:39:53 +00:00
rdb 601922e49e sRGB texture support, add floating-point flags to FrameBufferProperties 2014-06-19 19:32:03 +00:00
David Rose 741203a693 some minor debug aids and robustness additions 2013-12-06 20:53:40 +00:00
David Rose fee446f949 add Texture::ensure_loader_type() to fix problem with reloading video textures from the model-cache directory. 2013-09-24 19:19:02 +00:00
rdb 64c598abb1 various fixes for FBOs and image formats, including tobspr's patch for F_r16, F_rg16, F_rgb16 support. 2013-09-17 22:08:31 +00:00
David Rose 2ff43ca88e some more texture/pfm integration 2012-08-12 17:56:56 +00:00
David Rose 7ba693137c integrate PfmFile with PNMImage, Texture 2012-08-12 15:49:08 +00:00
David Rose 19adb4cd99 allow Texture::read() etc. to release Python GIL 2011-12-05 05:28:11 +00:00
David Rose 3d89cef544 Add Texture::set_auto_texture_scale() 2011-11-28 21:42:44 +00:00
David Rose be2657311d pipeline lens changes 2011-11-06 02:56:02 +00:00
David Rose 501470169f stdfloat_double 2011-10-10 05:25:10 +00:00
David Rose 9e22c72bf3 finally, pipelined textures 2011-10-08 21:04:05 +00:00
David Rose 6872488839 stereo/multiview textures 2011-08-08 18:55:26 +00:00
David Rose c4cdae59e0 fix problem with cached movie textures and textures-power-2 2011-06-30 00:02:08 +00:00
David Rose 285d70c29e support caching movie files in the model-cache-dir and in a txo file 2011-06-29 20:33:34 +00:00
rdb d6c9ed46a2 make_copy should be a const method 2011-06-03 16:29:13 +00:00
rdb 6fbdca0c96 Experimental texture compression with OpenGL ES 2011-03-01 19:20:32 +00:00
David Rose 95d9a344ae add Texture::rescale_texture() 2011-02-16 15:30:12 +00:00