forked from mirror/openmw-tes3mp
Merge branch 'videoplayback' of github.com:scrawl/openmw into videoplayback
This commit is contained in:
commit
c2b75e28e9
4 changed files with 5 additions and 2 deletions
|
@ -1020,6 +1020,7 @@ VideoPlayer::VideoPlayer(Ogre::SceneManager* sceneMgr)
|
||||||
mVideoMaterial->getTechnique(0)->getPass(0)->setDepthCheckEnabled(false);
|
mVideoMaterial->getTechnique(0)->getPass(0)->setDepthCheckEnabled(false);
|
||||||
mVideoMaterial->getTechnique(0)->getPass(0)->setLightingEnabled(false);
|
mVideoMaterial->getTechnique(0)->getPass(0)->setLightingEnabled(false);
|
||||||
mVideoMaterial->getTechnique(0)->getPass(0)->createTextureUnitState();
|
mVideoMaterial->getTechnique(0)->getPass(0)->createTextureUnitState();
|
||||||
|
mVideoMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureAddressingMode(Ogre::TextureUnitState::TAM_CLAMP);
|
||||||
}
|
}
|
||||||
mVideoMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureName("black.png");
|
mVideoMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureName("black.png");
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ namespace MWSound
|
||||||
virtual void open(const std::string &fname);
|
virtual void open(const std::string &fname);
|
||||||
virtual void close();
|
virtual void close();
|
||||||
|
|
||||||
|
virtual std::string getName();
|
||||||
virtual void getInfo(int *samplerate, ChannelConfig *chans, SampleType *type);
|
virtual void getInfo(int *samplerate, ChannelConfig *chans, SampleType *type);
|
||||||
|
|
||||||
virtual size_t read(char *buffer, size_t bytes);
|
virtual size_t read(char *buffer, size_t bytes);
|
||||||
|
|
|
@ -34,6 +34,7 @@ namespace MWSound
|
||||||
virtual void open(const std::string &fname);
|
virtual void open(const std::string &fname);
|
||||||
virtual void close();
|
virtual void close();
|
||||||
|
|
||||||
|
virtual std::string getName();
|
||||||
virtual void getInfo(int *samplerate, ChannelConfig *chans, SampleType *type);
|
virtual void getInfo(int *samplerate, ChannelConfig *chans, SampleType *type);
|
||||||
|
|
||||||
virtual size_t read(char *buffer, size_t bytes);
|
virtual size_t read(char *buffer, size_t bytes);
|
||||||
|
|
|
@ -70,7 +70,7 @@ namespace MWSound
|
||||||
friend class SoundManager;
|
friend class SoundManager;
|
||||||
};
|
};
|
||||||
#ifndef DEFAULT_OUTPUT
|
#ifndef DEFAULT_OUTPUT
|
||||||
#define DEFAULT_OUTPUT (::MWSound::OpenAL_Output)
|
#define DEFAULT_OUTPUT(x) ::MWSound::OpenAL_Output((x))
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue