GLXWorkstation.st
changeset 7893 3af8d2fd463b
parent 7829 12f0d02f567f
child 8344 7b3549ff623f
equal deleted inserted replaced
7892:0019b3cff185 7893:3af8d2fd463b
  4586     "
  4586     "
  4587 !
  4587 !
  4588 
  4588 
  4589 supportsLight
  4589 supportsLight
  4590     "return true, if this gl workstation supports light sources
  4590     "return true, if this gl workstation supports light sources
  4591      (i.e. if its a real GL).
  4591      (i.e. if it's a real GL).
  4592      For portable applications, always combine this with a query
  4592      For portable applications, always combine this with a query
  4593      if the display supports GL drawing at all."
  4593      if the display supports GL drawing at all."
  4594 
  4594 
  4595 %{  /* NOCONTEXT */
  4595 %{  /* NOCONTEXT */
  4596 #ifdef GLX
  4596 #ifdef GLX
  4600     ^ false
  4600     ^ false
  4601 
  4601 
  4602     "
  4602     "
  4603      Display supportsLight
  4603      Display supportsLight
  4604     "
  4604     "
       
  4605 
       
  4606     "Modified (comment): / 13-02-2017 / 20:19:29 / cg"
  4605 !
  4607 !
  4606 
  4608 
  4607 supportsRGB
  4609 supportsRGB
  4608     "return true, if this gl workstation supports rgb
  4610     "return true, if this gl workstation supports rgb
  4609      (in addition to indexed) colors. Actually, we return true
  4611      (in addition to indexed) colors. Actually, we return true
  4623     "
  4625     "
  4624 !
  4626 !
  4625 
  4627 
  4626 supportsTextures
  4628 supportsTextures
  4627     "return true, if this gl workstation supports texture mapping
  4629     "return true, if this gl workstation supports texture mapping
  4628      (i.e. if its a real GL).
  4630      (i.e. if it's a real GL).
  4629      For portable applications, always combine this with a query
  4631      For portable applications, always combine this with a query
  4630      if the display supports GL drawing at all."
  4632      if the display supports GL drawing at all."
  4631 
  4633 
  4632 %{  /* NOCONTEXT */
  4634 %{  /* NOCONTEXT */
  4633 #ifndef OPENGL
  4635 #ifndef OPENGL
  4634 # ifdef GD_TEXTURE
  4636 # ifdef GD_TEXTURE
  4635     if (getgdesc(GD_TEXTURE) != 0) {
  4637     if (getgdesc(GD_TEXTURE) != 0) {
  4636 	RETURN ( _INST(glOK) );
  4638         RETURN ( _INST(glOK) );
  4637     }
  4639     }
  4638 # endif
  4640 # endif
  4639 #endif
  4641 #endif
  4640 %}.
  4642 %}.
  4641     ^ false
  4643     ^ false
  4642 
  4644 
  4643     "
  4645     "
  4644      Display supportsTextures
  4646      Display supportsTextures
  4645     "
  4647     "
       
  4648 
       
  4649     "Modified: / 13-02-2017 / 20:19:40 / cg"
  4646 !
  4650 !
  4647 
  4651 
  4648 supportsZBuffer
  4652 supportsZBuffer
  4649     "return true, if this gl workstation has z buffer support.
  4653     "return true, if this gl workstation has z buffer support.
  4650      For portable applications, always combine this with a query
  4654      For portable applications, always combine this with a query